diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-03-18 11:17:26 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-03-18 11:17:26 +0100 |
commit | 10b191f631723aa5ea980953ff635d0f6c2273d5 (patch) | |
tree | 9a18ac246c8f8c66a9e7144bad7ea2958ecb5383 | |
parent | d5a575c5e004d391909d00a292384a9c9e176361 (diff) | |
download | gitbook-10b191f631723aa5ea980953ff635d0f6c2273d5.zip gitbook-10b191f631723aa5ea980953ff635d0f6c2273d5.tar.gz gitbook-10b191f631723aa5ea980953ff635d0f6c2273d5.tar.bz2 |
Use stabler block anchor in template output
-rw-r--r-- | lib/template/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/template/index.js b/lib/template/index.js index 7be16b9..410c2f5 100644 --- a/lib/template/index.js +++ b/lib/template/index.js @@ -343,7 +343,7 @@ TemplateEngine.prototype.processBlock = function(blk) { } // Return it as a position marker - return '@%@'+blk.id+'@%@'; + return '{{-%'+blk.id+'%-}}'; }; // Render a string (without post processing) @@ -391,7 +391,7 @@ TemplateEngine.prototype.applyShortcut = function(content, shortcut) { TemplateEngine.prototype.replaceBlocks = function(content) { var that = this; - return content.replace(/\@\%\@([\s\S]+?)\@\%\@/g, function(match, key) { + return content.replace(/\{\{\-\%([\s\S]+?)\%\-\}\}/g, function(match, key) { var blk = that.blockBodies[key]; if (!blk) return match; |