From 2cf10711f56d7042d13ec1182b256f166f0772fc Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 18 Jul 2016 08:57:39 -0700 Subject: [PATCH] Remove toc links from site. --- lib/main/build-site.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/main/build-site.js b/lib/main/build-site.js index 364075b0f..70d524bba 100644 --- a/lib/main/build-site.js +++ b/lib/main/build-site.js @@ -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)