Comparing Markdown and XML in publishing
The comparison should not be reduced to "simple versus complicated". Markdown offers immediately usable structures for common writing tasks. XML provides a syntax through which a domain vocabulary can define elements, attributes, and content models. Not every XML document is automatically semantically rich or validated. Vocabulary, schema, and checking process are decisive. S17
The following comparison concerns explicitly named profiles and requirements. It is not an overall ranking of file formats.
| Requirement | CommonMark core | Extended Markdown / workflow |
|---|---|---|
| Paragraph, list, link, code | Directly available | Generally directly usable |
| Pipe table | No dedicated syntax | GFM or Pandoc |
| Spanning or nested cells | No dedicated syntax | Tested Pandoc grid tables |
| Footnotes and citations | No dedicated syntax | Pandoc, bibliography, CSL |
| Mandatory domain fields | No domain schema | Profile and additional checks |
| Automatic numbered cross-references | No general system | For example Quarto or filters |
| Page-based index | No index model | Additional indexing and typesetting |
| Audience variants | No native selection | Convention and filter |
| Editing restrictions | Outside the syntax | Application or output format |
An internal link is not automatically a numbered cross-reference. A reference such as "see Figure 3" needs a coherent target type, number, label, and updating mechanism. Quarto provides a processing layer with suitable identifiers. That capability belongs to the Quarto workflow and must not be attributed solely to CommonMark core. S18
Similarly, a glossary made from definition lists is not a terminology database. A browser-oriented linked index is not a print index with page ranges. Controlled metadata require types and permitted values. An empty section can be syntactically valid but still lack mandatory domain information. Markdown linting can check writing rules; it does not replace a complete editorial domain model.
A practical hybrid approach uses a deliberately constrained Markdown profile for authoring and transforms it into a specified XML vocabulary. Every required domain meaning must already exist in the source or controlled companion data. Transformation cannot reliably invent missing semantics. Conversely, do not discard an XML original merely because a simplified Markdown derivative is sufficient for a search interface.

