jplatte / hinoki

A simple, yet very flexible static site generator.
GNU Affero General Public License v3.0
9 stars 2 forks source link

Citations #11

Open jplatte opened 10 months ago

jplatte commented 10 months ago

Apparently mdbook has a plugin for it, and pandoc also supports citations in markdown so it's not as uncommon as I would have thought. A natural solution user-wise could be to have a template function cite(&str) that generates markdown, however then the footnote generated by that function would have to be hoisted into the parent markdown document if templated-markdown (#1) is solved the way I'm thinking right now, which makes this pretty nasty.

Alternatively, "native" support for citations in markdown with the default markdown-to-HTML processor (pulldown_cmark) could just be declared out-of-scope, in which case citations could still be supported via pandoc (#10), though that would likely have its own downsides, in particular requiring users to have it installed because I'm definitely not going to embed it somehow.