Hacker News new | ask | show | jobs
by thangalin 822 days ago
Markdown does not specify how to add labels and cross-references for figures, equations, tables, etc. Many moons ago, I asked about them on the CommonMark forum[1] and described a syntax that was general and internationalizable. Given that CommonMark has frozen the Markdown specification, I implemented a consistent label and cross-reference syntax for my editor[2], KeenWrite[3]. These labels and cross-references are translated to XHTML, then transformed from XHTML into ConTeXt macros that are subsequently typeset.

[1]: https://talk.commonmark.org/t/cross-references-and-citations...

[2]: https://gitlab.com/DaveJarvis/KeenWrite/-/blob/main/docs/ref...

[3]: https://keenwrite.com/