feat: add flow class to footnotes section

This commit is contained in:
Devin Haska 2024-11-21 21:53:37 -08:00
parent 2fa43162eb
commit ddf999812e
No known key found for this signature in database

View file

@ -17,4 +17,14 @@ const markdown = markdownIt({
defaultLanguage: "plaintext",
});
markdown.renderer.rules.footnote_block_open = (_tokens, _idx, options) => {
return (
(options.xhtmlOut
? '<hr class="footnotes-sep" />\n'
: '<hr class="footnotes-sep">\n') +
'<section class="footnotes">\n' +
'<ol class="footnotes-list flow">\n'
);
};
module.exports = markdown;