diff --git a/exportHTML.js b/exportHTML.js index 09595b95..e5bf88a6 100644 --- a/exportHTML.js +++ b/exportHTML.js @@ -17,8 +17,10 @@ exports.exportHtmlAdditionalTagsWithData = exports.getLineHTMLForExport = async (hookName, context) => { if (settings.ep_comments_page && settings.ep_comments_page.exportHtml === false) return; + // I'm not sure how optimal this is - it will do a database lookup for each line.. const {comments} = await commentManager.getComments(context.padId); + let hasPlugin = false; // Load the HTML into a throwaway div instead of calling $.load() to avoid // https://github.com/cheeriojs/cheerio/issues/1031 const content = $('