XML technologies / Other markup languages / Markdown in publishing / Markdown and XML

The comparison should not be reduced to "simple versus complicated". Markdown offers immediately usable structures for common writing tasks. XML provides a syntax with which a specialist vocabulary can define its own elements, attributes and content models. Not every XML document is thereby automatically rich in semantics or validated. What matters are vocabulary, schema and validation process. S17

The following classification refers to explicitly named profiles and requirements. It is not a blanket 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

Merged or nested cells

No dedicated syntax

Tested Pandoc grid tables

Footnotes and citations

No dedicated syntax

Pandoc, bibliography, CSL

Mandatory subject-specific fields

No subject schema

Profile and additional validation

Automatic numbered cross-references

No general system

For example Quarto or filters

Page-related index

No index model

Additional indexing and typesetting logic

Target group variants

No native control

Convention and filter

Editing protection

Not part of the syntax

Application or output format

An internal link is not automatically a numbered cross-reference. For a reference such as "see Figure 3", the target type, number, caption and updating must all fit together. Quarto provides a processing layer with corresponding identifiers for this purpose. This capability is therefore part of the Quarto workflow and must not be attributed solely to the CommonMark core. S18

Similarly, a glossary made from definition lists is not yet a terminology database. A link register generated for the web browser is not a print-ready index with page ranges. Controlled metadata requires Data types and permissible values. An empty section may be syntactically permitted, but in terms of content it may mean that a required piece of information is missing. Markdown linting can check writing rules, but it does not replace a complete editorial content model.

A practical hybrid approach is to use a deliberately restricted Markdown profile as the authoring format and transform it into a defined XML vocabulary. Every required semantic meaning must already be present in the source or in controlled accompanying data. The transformation cannot reliably guess missing semantics. Conversely, an XML original should not be discarded merely because a simplified Markdown derivative is sufficient for a search interface.

back to top