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.

RequirementCommonMark coreExtended Markdown / workflow
Paragraph, list, link, codeDirectly availableGenerally directly usable
Pipe tableNo dedicated syntaxGFM or Pandoc
Spanning or nested cellsNo dedicated syntaxTested Pandoc grid tables
Footnotes and citationsNo dedicated syntaxPandoc, bibliography, CSL
Mandatory domain fieldsNo domain schemaProfile and additional checks
Automatic numbered cross-referencesNo general systemFor example Quarto or filters
Page-based indexNo index modelAdditional indexing and typesetting
Audience variantsNo native selectionConvention and filter
Editing restrictionsOutside the syntaxApplication 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.

<< back                                                                                                             next >>