diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-19 09:47:36 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-19 09:47:36 +0100 |
commit | ec586dd3cdf06e9567f5d3e4961022ddc3c94778 (patch) | |
tree | cc7825ab73110b4e6fbedee404427b052edffa17 /lib/parse/include.js | |
parent | 80432161708357bdcf0e00533d9e6d327636dab6 (diff) | |
download | gitbook-ec586dd3cdf06e9567f5d3e4961022ddc3c94778.zip gitbook-ec586dd3cdf06e9567f5d3e4961022ddc3c94778.tar.gz gitbook-ec586dd3cdf06e9567f5d3e4961022ddc3c94778.tar.bz2 |
Clear folder
Diffstat (limited to 'lib/parse/include.js')
-rw-r--r-- | lib/parse/include.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/parse/include.js b/lib/parse/include.js deleted file mode 100644 index 483b184..0000000 --- a/lib/parse/include.js +++ /dev/null @@ -1,12 +0,0 @@ -var _ = require('lodash'); - -module.exports = function(markdown, includer) { - // Memoized include function (to cache lookups) - var _include = _.memoize(includer); - - return markdown.replace(/{{([\s\S]+?)}}/g, function(match, key) { - // If fails leave content as is - key = key.trim(); - return _include(key) || match; - }); -}; |