diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-03-18 11:10:58 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-03-18 11:10:58 +0100 |
commit | 82d8c3e2d954f06fb97644ae0934dbd4c3df8cb3 (patch) | |
tree | e63cf2c4d5ff7cfb8f820213e10173e88330eea9 /lib/page | |
parent | bc0c8dbcf3ef060d99cafb27b9a414a3009c4a5f (diff) | |
download | gitbook-82d8c3e2d954f06fb97644ae0934dbd4c3df8cb3.zip gitbook-82d8c3e2d954f06fb97644ae0934dbd4c3df8cb3.tar.gz gitbook-82d8c3e2d954f06fb97644ae0934dbd4c3df8cb3.tar.bz2 |
Add method renderInline and renderBlock to book
Diffstat (limited to 'lib/page')
-rw-r--r-- | lib/page/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/page/index.js b/lib/page/index.js index 0377f35..bcd83e6 100644 --- a/lib/page/index.js +++ b/lib/page/index.js @@ -41,7 +41,7 @@ function Page(book, filename) { // Can we parse it? extension = path.extname(this.path); - this.parser = parsers.get(extension); + this.parser = parsers.getByExt(extension); if (!this.parser) throw error.ParsingError(new Error('Can\'t parse file "'+this.path+'"')); this.type = this.parser.name; |