From af36d2d8e55ad16f69608cf55bb902b5f90a0ce4 Mon Sep 17 00:00:00 2001 From: Benjamin Tan Date: Sat, 2 Jul 2016 22:15:00 +0800 Subject: [PATCH] Ensure proper tags are generated. (#2465) --- lib/main/build-site.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main/build-site.js b/lib/main/build-site.js index 6baba581b..1beacfc43 100644 --- a/lib/main/build-site.js +++ b/lib/main/build-site.js @@ -24,7 +24,7 @@ function build(type) { header.remove(); html = html.html(); html = html.replace(//g, '>'); + html = html.replace(/\s*-->/g, '>'); html = [ '---', @@ -40,4 +40,4 @@ function build(type) { fs.writeFile(path.join(docPath, `${version}.html`), html, onComplete); } -build(); \ No newline at end of file +build();