From cf7ee367d4fffc1f2ed6d95d3fee5b15760d2836 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 30 Sep 2022 18:03:52 -0500 Subject: [PATCH] Remove custom heading renderer when compiling markdown tables (#8054) Co-authored-by: Mike McNeil --- website/scripts/build-static-content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/scripts/build-static-content.js b/website/scripts/build-static-content.js index 400c03b68e..1e9f2fbd97 100644 --- a/website/scripts/build-static-content.js +++ b/website/scripts/build-static-content.js @@ -587,7 +587,7 @@ module.exports = { ).replace(/[^a-z0-9\-]/ig,''); // Convert the markdown string to HTML. - let htmlString = await sails.helpers.strings.toHtml(tableMdString); + let htmlString = await sails.helpers.strings.toHtml.with({mdString: tableMdString, addIdsToHeadings: false}); // Add the language-sql class to codeblocks in generated HTML partial for syntax highlighting. htmlString = htmlString.replace(/(
]*)(>)/gm, '$1 class="language-sql"$2$3');