commonmark-hs icon indicating copy to clipboard operation
commonmark-hs copied to clipboard

Implement `citations` extension

Open jgm opened this issue 6 years ago • 2 comments

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.

jgm avatar Sep 30 '19 15:09 jgm

Commit dd78a3ef228b2fd97860e07d77c22cc4296efa70 should help. We can now analyze the Tok contents of matched brackets. [EDIT: this commit was reverted.]

jgm avatar Jan 24 '21 00:01 jgm

OK, commit d5dfa2182f40fb6e52bcce771036d1db0ba5aac8 should help, at least for bracketed citations.

jgm avatar Jan 01 '22 03:01 jgm