Remove custom heading renderer when compiling markdown tables (#8054)

Co-authored-by: Mike McNeil <mikermcneil@users.noreply.github.com>
This commit is contained in:
Eric
2022-09-30 18:03:52 -05:00
committed by GitHub
co-authored by Mike McNeil
parent 69b0d39083
commit cf7ee367d4
+1 -1
View File
@@ -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(/(<pre><code)([^>]*)(>)/gm, '$1 class="language-sql"$2$3');