Disable headings link icons in marky-markdown.

This commit is contained in:
John-David Dalton
2016-11-16 01:46:07 -08:00
parent db14f324f6
commit 5cb80a0a84

View File

@@ -177,7 +177,11 @@ function build() {
// Uncomment docdown HTML hints.
.replace(/(<)!--\s*|\s*--(>)/g, '$1$2');
const $ = cheerio.load(marky(markdown, { 'sanitize': false }));
const $ = cheerio.load(marky(markdown, {
'enableHeadingLinkIcons': false,
'sanitize': false
}));
const $header = $('h1').first().remove();
const version = $header.find('span').first().text().trim().slice(1);