diff --git a/src/plugins/default/markbind-plugin-footnotes-popovers.js b/src/plugins/default/markbind-plugin-footnotes-popovers.js index 339aeae18a..4d8a7172ee 100644 --- a/src/plugins/default/markbind-plugin-footnotes-popovers.js +++ b/src/plugins/default/markbind-plugin-footnotes-popovers.js @@ -1,4 +1,5 @@ const cheerio = module.parent.require('cheerio'); +const { parseComponents } = require('../../lib/markbind/src/parsers/componentParser.js'); module.exports = { postRender: (content) => { @@ -17,6 +18,9 @@ module.exports = { $('#content-wrapper') .append($('hr.footnotes-sep')) .append($('section.footnotes').append(popoversHtml)); + $('section.footnotes popover').each((index, popover) => { + parseComponents(popover); + }); return $.html(); }, }; diff --git a/test/functional/test_site/expected/index.html b/test/functional/test_site/expected/index.html index fc3e86df39..b0e4daac7d 100644 --- a/test/functional/test_site/expected/index.html +++ b/test/functional/test_site/expected/index.html @@ -646,27 +646,27 @@
Here is the footnote. Footnotes will appear at the bottom of the page.
Here's one with multiple blocks.
Subsequent paragraphs are indented to show that they belong to the previous footnote.
Inlines notes are easier to write, since you don't have to pick an identifier and move down to type the note.