summaryrefslogtreecommitdiffstats
path: root/lib/parsers.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-05-04 19:01:31 +0200
committerSamy Pesse <samypesse@gmail.com>2016-05-04 19:01:31 +0200
commitc4b54033cefe54f2c7fda92b8765ed500178ea74 (patch)
tree14b83ff6b7950f542dfff4dfa9c6c676209631bb /lib/parsers.js
parent4d85d6eb6e12192146e8f2450f1bddada6e6f6d1 (diff)
downloadgitbook-c4b54033cefe54f2c7fda92b8765ed500178ea74.zip
gitbook-c4b54033cefe54f2c7fda92b8765ed500178ea74.tar.gz
gitbook-c4b54033cefe54f2c7fda92b8765ed500178ea74.tar.bz2
Fix #1268: fix shortcuts of template block not being applied
Diffstat (limited to 'lib/parsers.js')
-rw-r--r--lib/parsers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parsers.js b/lib/parsers.js
index 1c9ba4c..2c5156e 100644
--- a/lib/parsers.js
+++ b/lib/parsers.js
@@ -43,7 +43,7 @@ function getParserByExt(ext) {
@return {Parser|undefined}
*/
function getParserForFile(filename) {
- return getParser(path.extname(filename));
+ return getParserByExt(path.extname(filename));
}
// List all parsable extensions