Fix #633: update markdown parser to fix codeblocks

Sort glossary and fix #634
This commit is contained in:
Samy Pessé
2015-03-08 22:52:54 +01:00
parent 7a4179a2a2
commit ee3a0ba801
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -507,13 +507,20 @@ Book.prototype.parsePage = function(filename, options) {
return interpolate(options.interpolateTemplate);
})
// Prepare page markup
.then(function() {
return filetype.page.prepare(page.content)
.then(function(content) {
page.content = content;
});
})
// Generate template
.then(function() {
return that.template.renderPage(page);
})
// Prepare and Parse markup
.then(filetype.page.prepare)
.then(function(content) {
page.content = content;
+1 -1
View File
@@ -12,7 +12,7 @@
"resolve": "0.6.3",
"fs-extra": "0.16.3",
"fstream-ignore": "1.0.2",
"gitbook-parsers": "0.5.0",
"gitbook-parsers": "0.5.1",
"nunjucks": "git+https://github.com/mozilla/nunjucks.git#42d2b9f5c0ad5db8ca3a1fdbba5bde9fc4cc2c45",
"nunjucks-autoescape": "0.1.1",
"nunjucks-filter": "0.1.0",