commonmark-hs
commonmark-hs copied to clipboard
Implement `citations` extension
As in pandoc: https://pandoc.org/MANUAL.html#extension-citations
Implement in commonmark-core, commonmark-cli, commonmark-pandoc.
This is tricky: we need to make sure this comes first in bracketed specs to avoid interpretation as a span.
Commit dd78a3ef228b2fd97860e07d77c22cc4296efa70 should help. We can now analyze the Tok contents of matched brackets. [EDIT: this commit was reverted.]
OK, commit d5dfa2182f40fb6e52bcce771036d1db0ba5aac8 should help, at least for bracketed citations.