Permalink
Browse files

issue#2 emit "$&" properly

  • Loading branch information...
1 parent 7378914 commit 288888f990bb7c045d9f5c5800e36813834fd700 @atmin atmin committed Nov 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tasks/md2html.js
View
2 tasks/md2html.js
@@ -65,7 +65,7 @@ module.exports = function(grunt) {
if (relPath.length === 0) {
relPath = '.';
}
- html = layout.replace(/\{DOC\}/g, html);
+ html = layout.replace(/\{DOC\}/g, function() { return html });
html = html.replace(/\{BASEPATH\}/g, relPath);
html = html.replace(/\{DEST\}/g, f.dest);

0 comments on commit 288888f

Please sign in to comment.