feat: add flow
class to footnotes section
This commit is contained in:
parent
2fa43162eb
commit
ddf999812e
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue