Remove toc links from site.

This commit is contained in:
John-David Dalton
2016-07-18 08:57:39 -07:00
parent bde171e947
commit 2cf10711f5

View File

@@ -16,13 +16,16 @@ function build(type) {
.readFileSync(readmePath, 'utf8')
.replace(/(<)!--\s*|\s*--(>)/g, '$1$2');
var $ = marky(markdown),
var $ = marky(markdown, { 'sanitize': false }),
$header = $('h1').first().remove(),
version = _.trim($header.find('span').first().text()).slice(1);
// Remove docdown horizontal rules.
$('hr').remove();
// Remove table of contents (toc) links.
$('a[href="#docs"]').remove();
// Remove marky-markdown additions.
$('[id^="user-content-"]')
.attr('class', null)