diff options
author | Soreine <nicolas@gitbook.com> | 2016-05-02 13:37:46 +0200 |
---|---|---|
committer | Soreine <nicolas@gitbook.com> | 2016-05-02 13:38:51 +0200 |
commit | 289e4b5dc1e79259fe3b53b75567d3fc0dd655d1 (patch) | |
tree | 35964bc1fca5ba06948117fb896448e2a4dcd083 /lib/models | |
parent | a974dcdab61ceb902b4d509992daddf8fb94d0a0 (diff) | |
download | gitbook-289e4b5dc1e79259fe3b53b75567d3fc0dd655d1.zip gitbook-289e4b5dc1e79259fe3b53b75567d3fc0dd655d1.tar.gz gitbook-289e4b5dc1e79259fe3b53b75567d3fc0dd655d1.tar.bz2 |
Tweak Summary.toText doc
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/summary.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/models/summary.js b/lib/models/summary.js index 9f1701e..ec7e05f 100644 --- a/lib/models/summary.js +++ b/lib/models/summary.js @@ -132,13 +132,14 @@ Summary.prototype.getPrevArticle = function(current) { /** Render summary as text + @param {String} parseExt Extension of the parser to use @return {Promise<String>} */ -Summary.prototype.toText = function(parser) { +Summary.prototype.toText = function(parseExt) { var file = this.getFile(); var parts = this.getParts(); - parser = parser? parsers.getByExt(parser) : file.getParser(); + var parser = parseExt? parsers.getByExt(parseExt) : file.getParser(); if (!parser) { throw error.FileNotParsableError({ |