Context
The canonical text format must be readable without special software for several decades. It must have low authoring friction for daily use, and it must allow mechanical validation of structure. The project brief named Markdown as a candidate and asked for DITA, DocBook, AsciiDoc, Typst and Quarto to be evaluated.
Options
Table 1. Candidate formats. Ratings are qualitative judgements, not measurements.
| Format | Readable as plain text | Authoring friction | Structural enforcement | Tool longevity risk |
|---|---|---|---|---|
| CommonMark + YAML front matter | High | Low | Front matter by schema; body by heading rules | Low: many independent parsers |
| AsciiDoc | High | Low to medium | Medium: attributes, roles | Medium: one dominant toolchain |
| DITA / DocBook (XML) | Low | High | High: DTD or schema validation | Medium: shrinking tool base |
| Typst | Medium | Medium | Low: markup language with scripting | High: young, single implementation |
Quarto (.qmd) |
High | Low | Low | Medium: depends on Quarto and Pandoc releases |
XML vocabularies give the strongest structural guarantees. Those guarantees target large documentation sets with many writers. In this repository the main structural needs are typed metadata, typed relations and a fixed section order per type. A schema on front matter and a heading check on the body meet these needs.
Decision
- Objects are CommonMark REF-000012 files with YAML front matter.
- Front matter is validated against a JSON Schema 2020-12 document REF-000009.
- Body structure is validated against required level-2 headings per type (
schema/types.yaml). - The only syntax extension is the inline reference
[[ID]]or[[ID@N]]. Tables, footnotes and definition lists use widely supported Markdown extensions. - Quarto MAY be used to produce analysis documents. Its rendered output is registered as an artifact. A
.qmdfile is not an object.
Consequences
- Every object is readable in any text editor and renders acceptably on common code-hosting sites.
- Inline semantics are weaker than in XML. Statement categories are carried by section and wording (STD-000002 R4), not by markup. If this proves insufficient, a later decision MAY add an inline marker syntax.
- Mathematical notation is written in LaTeX syntax inside
$...$. Rendering is deferred until the first object that needs it.