summaryrefslogtreecommitdiffstats
path: root/lib/parse/renderer.js
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@friendco.de>2014-10-15 21:20:10 +0200
committerAaron O'Mullan <aaron.omullan@friendco.de>2014-10-15 21:20:10 +0200
commit52e83618467a238f6b20f5fb77f6f6a2e1450c8c (patch)
tree96b43d8396fedea81409677f1e10698a0b36265c /lib/parse/renderer.js
parent49e3bbc3d6e9e128df721494e9a10eaf15b7ddc8 (diff)
downloadgitbook-52e83618467a238f6b20f5fb77f6f6a2e1450c8c.zip
gitbook-52e83618467a238f6b20f5fb77f6f6a2e1450c8c.tar.gz
gitbook-52e83618467a238f6b20f5fb77f6f6a2e1450c8c.tar.bz2
Add include support, with variables and the whole shebang
Fixes #462
Diffstat (limited to 'lib/parse/renderer.js')
-rw-r--r--lib/parse/renderer.js5
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
);