A minimal demonstration of using the Quillmark package to render markdown content into an Air Force official memorandum.
This demo shows how to:
- Use the Quillmark Python package to render documents
- Generate an official Air Force memorandum from markdown
- Utilize the tonguetoquill-collection/quills/usaf_memoQuill for proper formatting
- Clone this repository
- Install dependencies:
pip install -r requirements.txtRun the demo script to generate a PDF memorandum:
python demo.pyThis will:
- Read the content from sample-memo.md
- Use the USAF memo Quill to format the document according to AFH 33-337 standards
- Generate output_memo.pdfin the current directory
- demo.py- Main script that demonstrates the Quillmark workflow
- sample-memo.md- Example Air Force memorandum in markdown format
- requirements.txt- Python package dependencies
- tonguetoquill-collection/- Collection of Quills for different document types
The demo follows these steps:
- Load the Quill: Loads the USAF memo Quill from tonguetoquill-collection/quills/usaf_memo
- Parse Markdown: Parses the markdown file with YAML frontmatter containing memo metadata
- Create Workflow: Creates a rendering workflow based on the Quill
- Render to PDF: Renders the document to PDF format
- Save Output: Saves the generated PDF to disk
The sample-memo.md file demonstrates proper markdown structure for an Air Force memorandum:
---
QUILL: usaf_memo
letterhead_title: DEPARTMENT OF THE AIR FORCE
letterhead_caption:
  - HEADQUARTERS UNITED STATES AIR FORCE
memo_for:
  - ALL PERSONNEL
memo_from:
  - HQ USAF/A1
  - Organization Name
  - Street Address
  - City ST ZIP
subject: Memo Subject
signature_block:
  - NAME, Rank, USAF
  - Duty Title
---
Your memo content goes here...- Quillmark Documentation
- Quillmark on PyPI
- Air Force Handbook 33-337 - The Tongue and Quill
See LICENSE file for details.