jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.2k stars 3.36k forks source link

Reader: gfm with citeproc #8452

Open halloichbingunnar opened 1 year ago

halloichbingunnar commented 1 year ago

Hello everyone, thank you first and foremost for your incredible work with pandoc. I am not sure whether this is a feature request or a bug.

I have notes in markdown with bibtex references. With reader: markdown , references are rendered perfectly fine.

But my markdown notes are actually in gfm (that means, for example, no newline before lists in hundreds of documents). I thought, I could just use reader: gfm to work around that. But in this case, my references are not rendered and displayed as [@name_1993_title] in the exported file.

Is there any option to help me out, is it a bug, is it a feature request? Thank you so much!

jgm commented 1 year ago

It's not a bug, because gfm doesn't include the citeproc extension. It's not the presence of footnotes that matters, it's the special treatment of things like [@foobar2001, p. 32].

When https://github.com/jgm/commonmark-hs/issues/15 is done, we can add citations as an optional extension for gfm, but until then it's not possible.

(You could in principle try to work around this with a Lua filter, but it would be a somewhat complex one.)

halloichbingunnar commented 1 year ago

Thank you very much for this explanation! Is there any time frame for the commonmark citations integration?

jgm commented 1 year ago

No definite time frame. It has been a surprisingly hard feature to implement and design.

halloichbingunnar commented 1 year ago

Haha, alright, good luck! 💪