Skip to content

Citations

Footnotes with hex-code identifiers get renumbered to display indices and lifted into a structured citation dataset on tree.data.citations:

Global aging is accelerating.[^a1b2c3]
Healthcare costs are rising.[^d4e5f6]
[^a1b2c3]: 2024. [Population Ageing](https://example.com). Published: 2024-07-11
[^d4e5f6]: 2025. [Cost Drivers](https://example.com). Published: 2024-11-22

After parseMarkdown(content), the MDAST is mutated in place:

  • footnoteReference nodes carry node.data.citationIndex (the display number, e.g. 1, 2) and node.data.citationHex (the original identifier).
  • footnoteDefinition nodes are removed from the tree.
  • The full citation dataset (title, URL, source domain, published / updated dates, raw text, parsed flag) lives at tree.data.citations.ordered for a Sources-style component to render at the bottom of the article.