Skip to content

Quillmark Format

Quillmark is the format TongueToQuill documents are written in: CommonMark Markdown, with each card's fields in a YAML block fenced by ~~~. It reads as plain text and parses as structured data. You meet it in Advanced Mode, when pasting a document built elsewhere, and when an AI assistant writes one.

This page is the reference for the format. For writing a document in the editor, start at Choosing a Template or Anatomy of a Memorandum; nothing there needs this page.

Document structure

A document is a sequence of cards. Each card is a ~~~ block of fields followed by the Markdown body under it, up to the next block or the end of the file.

  • The first card is the main card. Its $quill line names the Quill that renders the document.
  • Every card after it names its kind with $kind, such as indorsement.

Minimal document:

~~~
$quill: usaf_memo@0.3
memo_for:
  - 20 FW/CC
subject: Example
signature_block:
  - JOHN A. SMITH, Lt Col, USAF
~~~

The body goes here.

Card blocks

A card block opens and closes with ~~~, three tildes at column zero. The canonical opener is a bare ~~~. An info string after it is ignored, so ~~~card-yaml and ~~~yaml open a card too, and both are saved back as a bare ~~~. Between the fences is YAML.

~~~
key: value
list:
  - one
  - two
~~~

Blank line above the opener

A blank line is required immediately above every ~~~ opener, unless the opener is line 1. Without it the line is not an opener: the parser reads an ordinary code block, and the document loses its structure. This is the most common authoring mistake.

Two more rules catch people coming from other Markdown tools:

  • Not --- front matter. A document that opens with --- has no main card and fails to parse; the error names the ~~~ fence to write instead.
  • Code in a body takes backticks. Any ~~~ at column zero after a blank line opens a card, whatever follows it, so a literal code block in a body opens with ```.

Reserved $ keys

Keys starting with $ belong to the format, and only these four exist. Any other $ key is a parse error.

Key Where Purpose
$quill Main card only, required Names the Quill and its version: usaf_memo@0.3.
$kind Every card after the main card, required Names the card's kind, one the Quill declares (indorsement). The main card's kind is main; writing $kind: main there is optional, and no other card may use it.
$ext Any card Editor and tool data that never prints: a template's editor tips, or a name given to a card in the editor.
$seed Main card only What a new card of each kind starts with, so a template can set its own placeholders for the cards added to it.
$seed:
  indorsement:
    from: 20 OG/CC
    signature_block:
      - FIRST M. LAST, Col, USAF
      - Commander

Every other key is a field, in lowercase snake_case. The Quill decides what each field means.

YAML values

The fields are YAML, and a few of its rules bite often enough to name:

  • Blank means unanswered. field:, field: null and field: ~ are the same as leaving the line out: the field prints its default, or nothing. Write field: "" to force a field empty when its default would print.
  • One value is a one-item list. memo_for: 20 FW/CC is the same as the two-line list form.
  • Quote values YAML would misread. A value that starts with *, & or !, or contains : or #, needs quotes: subject: "Range 7: Closure", tag_line: '**Aim High**'. So does text that looks like a number, such as a ZIP code with a leading zero ("02134") or a phone number with a +.
  • Only true and false are booleans. yes, no, on and off are text.
  • Dates are YYYY-MM-DD, or today for the day the document is rendered.
  • Multi-line values use a |- block, not a quoted string spanning lines.

Some fields hold others. classification in the memo is one: choosing CUI adds the CUI fields under it, with the marking under value (Classification § CUI).

Version selectors

The $quill value is a Quill name with an optional version:

Form Meaning
usaf_memo@0.3 The newest 0.3.x the deployment holds
usaf_memo@0.3.0 Exactly 0.3.0
usaf_memo The newest version the deployment holds

@0, @latest and a trailing @ are parse errors. Names match [a-z][a-z0-9_]*.

Pin MAJOR.MINOR, which is what new documents, templates and blueprints write. A Quill's patch releases never ask anything of a document, but a minor release can rename or reshape fields, so a bare name can leave a document behind when the deployment moves to the next minor version. An exact pin stops resolving when the deployment replaces that patch.

A name may carry the collection it comes from: airmark.usaf_memo@0.3 resolves on a deployment serving the airmark collection, as the bare name does.

Cards

The main card's $quill applies to the whole document; each later card declares only its $kind. The kinds a document can hold are the Quill's: indorsement in the memo, itinerary in DAF Form 4392, experience in AF Form 4141, a section per kind in the resume. Cards print in the order they appear.

~~~
$quill: usaf_memo@0.3
subject: Request for Range 7 Extension
~~~

Main body.

~~~
$kind: indorsement
from: 20 OG/CC
for: 20 OSS/CC
signature_block:
  - ROBERT T. CHANCE, Col, USAF
  - Commander
~~~

Indorsement body.

A card of a kind the Quill doesn't declare stays in the document but does not print; the MCP tools reject one.

Supported Markdown

CommonMark 0.31.2, plus:

  • GFM strikethrough (~~text~~)
  • GFM pipe tables, with column alignment (:---, :---:, ---:)
  • GFM task lists (- [ ], - [x])
  • <u>text</u> for underline, and <br> for a line break, including inside a table cell
Feature Syntax
Bold **text**
Italic *text*
Underline <u>text</u>
Strikethrough ~~text~~
Heading # Heading
Ordered list 1. item
Unordered list - item
Task list - [ ] item
Block quote > text
Line break \ at the end of a line, or <br>
Pipe table \| col \|, with \| :--- \|, \| :---: \|, \| ---: \| alignment
Link [text](url)
Inline code `code`
Code block ```
Comment <!-- note -->

What a construct looks like on the page is the Quill's call: the memo, for example, numbers paragraphs, letters bullets, and prints block quotes unnumbered (Anatomy § Body conventions).

Constructs that don't print:

  • Images stay in the document, but no Quill draws them.
  • Comments (<!-- … -->) never print, which makes them a place for notes in a template.
  • Other HTML is dropped.
  • Math ($…$) and definition lists print as the literal text.
  • Footnotes: the definition is dropped, and a reference prints as written ([^1]).

Layout tags

Resizing or aligning a table in Rich Text Mode writes a qm-table tag around it, and the same tags work in Advanced Mode. Each tag stands on its own line with a blank line around what it wraps.

<qm-table widths="1 2 auto" align="center">

| Item | Description | Qty |
| --- | --- | --- |
| A | First | 1 |

</qm-table>
  • qm-table takes widths (relative column weights, or auto), align (left, center, right) and headless (no header row).
  • <qm-cell align="center" valign="bottom">…</qm-cell> around a whole table cell aligns that cell.
  • qm-keep keeps what it wraps on one page.

Validation

The Quill checks every card's fields before rendering. Most problems still render:

  • Unanswered fields print their default, or nothing. No field is required.
  • Unknown fields stay in the document, and the layout ignores them. The editor doesn't flag them, so a misspelled field name simply doesn't print.
  • Unknown card kinds stay in the document and don't print.

A render fails only where the Quill would have to guess what you meant, and the diagnostic names the field by its path (main.memo_style, cards.indorsement[0].action):

  • A value outside a field's choices, which are case-sensitive: memo_style: USAF instead of usaf.
  • A value that isn't the field's type: text in a number field, or a date that isn't YYYY-MM-DD or today.
  • A second paragraph in a one-line field.
  • A card block the parser can't read: a --- opener, a card after the main card with no $kind, an unknown $ key, or YAML that doesn't parse.

For the full format specification and engine reference, see quillmark.dev.