markdown-it / markdown-it-footnote

Footnotes plugin for markdown-it markdown parser
https://markdown-it.github.io/
MIT License
210 stars 59 forks source link

Specify location on page #34

Closed indo-dev-0 closed 5 years ago

indo-dev-0 commented 5 years ago

I pre-process my Markdown using Nunjucks and would like to have page structure like this:

<footer>
  <section id="footnotes">
    //list of footnotes
  </section>
  <section id="references">
    //list of references
  </section>
  <section id="comments">
    //comments
  </section>
</footer>

However, markdown-it-footnotes only allows my to append at the end of the page. It would be ideal I could configure where it is inserted into the page using to config. Some documentation on how to alter the parser would be a close second.

indo-dev-0 commented 5 years ago

I'm an idiot: I couldn't find the location in your code for where it places the footnote block because it just drops it in wherever the footnote definitions are located.