diff options
Diffstat (limited to 'lib/models/parser.js')
-rw-r--r-- | lib/models/parser.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/models/parser.js b/lib/models/parser.js index e776582..d28a4e2 100644 --- a/lib/models/parser.js +++ b/lib/models/parser.js @@ -43,6 +43,10 @@ Parser.prototype.parseGlossary = function(content) { Parser.prototype.preparePage = function(content) { var page = this.get('page'); + if (!page.prepare) { + return Promise(content); + } + return Promise(page.prepare(content)); }; |