diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-27 22:18:33 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-27 22:18:33 +0200 |
commit | 9bb0a3fbd355b6dda2fe33e3a83884baa8f30917 (patch) | |
tree | 567c1f02e05704039c87e42e10d4d5c9fb0ed9bf /lib/output/getModifiers.js | |
parent | 9a1a6f2625612c18745957c4331be27dfdc2fb34 (diff) | |
download | gitbook-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.js | 5 |
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) ), |