markdown-to-pdf icon indicating copy to clipboard operation
markdown-to-pdf copied to clipboard

Footnotes not rendering

Open smolvik1 opened this issue 3 years ago • 4 comments

Footnotes does not seem to be rendering in pdf.

smolvik1 avatar Nov 03 '22 06:11 smolvik1

Thanks for highlighting this!

BaileyJM02 avatar Nov 24 '22 13:11 BaileyJM02

It looks like there is a markdown-it to support footnotes: markdown-it-footnote

There likely would also need to be a change to the default css theme to add formatting.

barrust avatar Dec 13 '22 13:12 barrust

If there is anything I can do to help implement this, please let me know! I think I understand the how to make the changes, but I don't know how to test to ensure that I didn't break anything.

barrust avatar Dec 14 '22 18:12 barrust

In addition to needing to add the following:

const markdownItFootnote = require('markdown-it-footnote');

...

md.use(markdownItFootnote);

It will also require updating the CSS file to have the footnote classes defined; there are a few options, but depending on where the original CSS originated could help determine a set that would fit the current theme.

barrust avatar Jan 16 '24 23:01 barrust