summaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authornimojs <imhadley@163.com>2015-04-19 23:14:19 +0800
committernimojs <imhadley@163.com>2015-04-19 23:14:19 +0800
commitcbaf08642e63b1dc50b99ba5ac41ea1ecc4b7163 (patch)
tree2d2d55cfbd5e9b89a99223d2e30037ed4ba14cae /gulpfile.js
parent720cb5a6ba938cb9864bd24d6df5527b5cdbfa91 (diff)
downloadhandlebarsjs.org-master.zip
handlebarsjs.org-master.tar.gz
handlebarsjs.org-master.tar.bz2
增加章节,静态资源文件目录调整
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js
index ba7b9d6..c6f3904 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -98,8 +98,8 @@ var compileMD = function (paths) {
html = html.replace(/(href=['"][^"']+\.)md(['"])/g,'$1html$2')
// 将 <!-- #hash_demo --> 转换为锚记 <a href="#hash_demo" name="hash_demo"></a>
// oHash 用于防止 hash 重复
- // 将 <!---<dic class="contents">--> 替换为 <dic class="contents"> (因为官方文档中存在一些带 class 的 div,此处需要兼容官方文档样式)
html = html.replace(/<!---([^-]+)-->/g,'$1')
+ // 将 <!---<div class="contents">--> 替换为 <div class="contents"> (因为官方文档中存在一些带 class 的 div,此处需要兼容官方文档样式)
var oHash = {}
html = html.replace(/<!--\s*#([^\s*]+)\s*-->/g, function () {
var hash = arguments[1];