Ensure proper tags are generated. (#2465)

This commit is contained in:
Benjamin Tan
2016-07-02 22:15:00 +08:00
committed by John-David Dalton
parent 6b0069f10f
commit af36d2d8e5

View File

@@ -24,7 +24,7 @@ function build(type) {
header.remove(); header.remove();
html = html.html(); html = html.html();
html = html.replace(/<!--\s*/g, '<'); html = html.replace(/<!--\s*/g, '<');
html = html.replace(/-->/g, '>'); html = html.replace(/\s*-->/g, '>');
html = [ html = [
'---', '---',
@@ -40,4 +40,4 @@ function build(type) {
fs.writeFile(path.join(docPath, `${version}.html`), html, onComplete); fs.writeFile(path.join(docPath, `${version}.html`), html, onComplete);
} }
build(); build();