diff options
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/config.js | 2 | ||||
-rw-r--r-- | lib/models/parser.js | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/models/config.js b/lib/models/config.js index 83dd6d4..3310a93 100644 --- a/lib/models/config.js +++ b/lib/models/config.js @@ -75,7 +75,7 @@ Config.prototype.getPluginDependencies = function() { @return {Config} */ Config.prototype.setPluginDependencies = function(deps) { - var plugins = PluginDependency.listToArray(deps); + var plugins = PluginDependency.listFromArray(deps); return this.setValue('plugins', plugins); }; 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)); }; |