diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2014-10-15 21:29:23 +0200 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@gmail.com> | 2014-10-15 21:29:23 +0200 |
commit | ce50b893e926fed8905419efc8bce4a64ab2d5dc (patch) | |
tree | 83cf19e47f26fd77072ac63aeaf2152a4b30ffa6 /lib/parse/renderer.js | |
parent | 49e3bbc3d6e9e128df721494e9a10eaf15b7ddc8 (diff) | |
parent | 225ff27dd15b904d6a4a784c219522a28f316a5b (diff) | |
download | gitbook-ce50b893e926fed8905419efc8bce4a64ab2d5dc.zip gitbook-ce50b893e926fed8905419efc8bce4a64ab2d5dc.tar.gz gitbook-ce50b893e926fed8905419efc8bce4a64ab2d5dc.tar.bz2 |
Merge pull request #482 from GitbookIO/feature/includes
Add include support, with variables and the whole shebang
Diffstat (limited to 'lib/parse/renderer.js')
-rw-r--r-- | lib/parse/renderer.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/parse/renderer.js b/lib/parse/renderer.js index faa416c..61b3d9b 100644 --- a/lib/parse/renderer.js +++ b/lib/parse/renderer.js @@ -1,8 +1,6 @@ var url = require('url'); var inherits = require('util').inherits; var links = require('../utils').links; -var codeInclude = require('./code_include'); - var path = require('path'); @@ -130,8 +128,7 @@ GitBookRenderer.prototype.listitem = function(text) { GitBookRenderer.prototype.code = function(code, lang, escaped) { return GitBookRenderer.super_.prototype.code.call( this, - // Import code snippets - codeInclude(code, this._extra_options.dir), + code, lang, escaped ); |