Following convention, this repository contains three separate npm
packages related to support for pandoc
-style citation syntax for the remark
Markdown parser.
micromark-extension-cite
defines a new syntax extension formicromark
, which is responsible for converting markdown syntax to a token streammdast-util-cite
describes how to convert tokens output bymicromark-extension-cite
into either an HTML string ormdast
syntax tree.remark-cite
encapsulates the above functionality into aremark
plugin.
For more information, see the individual folders for each package.
Pull requests for bugfixes or new features / options are welcome. Be aware that changes to the syntax extension micromark-extension-cite
may also have an impact on the other two packages, and you will need to test all three.