summaryrefslogtreecommitdiffstats
path: root/lib/output/getModifiers.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-04-27 22:18:33 +0200
committerSamy Pesse <samypesse@gmail.com>2016-04-27 22:18:33 +0200
commit9bb0a3fbd355b6dda2fe33e3a83884baa8f30917 (patch)
tree567c1f02e05704039c87e42e10d4d5c9fb0ed9bf /lib/output/getModifiers.js
parent9a1a6f2625612c18745957c4331be27dfdc2fb34 (diff)
downloadgitbook-9bb0a3fbd355b6dda2fe33e3a83884baa8f30917.zip
gitbook-9bb0a3fbd355b6dda2fe33e3a83884baa8f30917.tar.gz
gitbook-9bb0a3fbd355b6dda2fe33e3a83884baa8f30917.tar.bz2
Add tests for svg inliner
Diffstat (limited to 'lib/output/getModifiers.js')
-rw-r--r--lib/output/getModifiers.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/output/getModifiers.js b/lib/output/getModifiers.js
index 1dd62ba..1979063 100644
--- a/lib/output/getModifiers.js
+++ b/lib/output/getModifiers.js
@@ -20,6 +20,9 @@ function getModifiers(output, page) {
var entries = glossary.getEntries();
var file = page.getFile();
+ // Current file path
+ var currentFilePath = file.getPath();
+
// Get TemplateBlock for highlighting
var blocks = Plugins.listBlocks(plugins);
var code = blocks.get(CODEBLOCK) || defaultBlocks.get(CODEBLOCK);
@@ -33,7 +36,7 @@ function getModifiers(output, page) {
// Resolve links (.md -> .html)
Modifiers.resolveLinks.bind(null,
- file.getPath(),
+ currentFilePath,
resolveFileToURL.bind(null, output)
),