Documentation markup when writing
Do not treat documentation markup as interchangeable skins over the same document. Each format encodes a different tradeoff among portability, publishing tooling, and structured extensions. Dev-Centr’s Create… flow lists these under Documentation; this page is the advisory path outside the app.
First cut
| Pick | When |
|---|---|
Markdown ( |
Maximum forge interop (README defaults, CommonMark/GFM consumers). You accept weak tabs/TOC/admonition story. |
AsciiDoc ( |
Antora component pages, xrefs, and the org’s current docs pipeline. Heavier syntax; strongest multi-repo site story today. De facto language definition: AsciiDoc Language Documentation (Asciidoctor)—Eclipse’s formal AsciiDoc Language Spec is still drafting. |
CentrMark ( |
New Dev-Centr technical prose when a CentrMark toolchain is available. Directive AST (void / block / inline) without MDX/JS injection. |
MDX ( |
Only React/MDX docs pipelines that intentionally embed JSX. Not general project prose. |
Capability sketch
| Capability | Markdown | AsciiDoc | CentrMark |
|---|---|---|---|
Tabs / multi-pane |
HTML or custom components |
Possible; noisy macros |
|
Void elements (TOC) |
Not standardized |
Tool-specific |
|
Admonitions |
Often custom HTML |
Attribute-heavy macros |
|
Extensibility without JS |
MDX pulls JSX into text |
Macro systems vary |
Directives map to a stable AST |
Evolution (lineage)
Markdown remains the portable baseline. MDX specializes it for React. CentrMark evolves the Markdown feel toward a directive AST without embedding JS. AsciiDoc stays the Antora authoring format; CentrMark can evolve from AsciiDoc as publishing backends catch up—keep Antora output during migration.
flowchart LR
markdown[Markdown]
mdx[MDX]
asciidoc[AsciiDoc]
centrmark[CentrMark]
markdown -->|specializes| mdx
markdown -->|evolves| centrmark
asciidoc -->|evolves| centrmark
Related
-
Product Create… dialog: Content Create
-
CentrMark overview: dev-centr/centrmark
-
Structured data formats (not prose): Structured data formats