summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-09-08 19:18:04 +0300
committerLars Wirzenius <liw@liw.fi>2019-09-08 19:18:04 +0300
commitaff257dad5b4df47e143d74873290d64c5516308 (patch)
treeede057317c80a675901836f241ff5192c2d6a5e7
parent83647295704709282ceb853486506529ec417318 (diff)
downloadfable-poc-aff257dad5b4df47e143d74873290d64c5516308.tar.gz
Fix: use absolute path for generated images
-rwxr-xr-xpandoc-fable-filter2
1 files changed, 1 insertions, 1 deletions
diff --git a/pandoc-fable-filter b/pandoc-fable-filter
index d0d0c73..86d7ab3 100755
--- a/pandoc-fable-filter
+++ b/pandoc-fable-filter
@@ -66,7 +66,7 @@ def process_to_svg(kind, ident, classes, keyvals, code, format_):
subprocess.check_call(argv)
sys.stderr.write('Created image ' + dest + '\n')
- return Para([Image([ident, [], keyvals], caption, [dest, typef])])
+ return Para([Image([ident, [], keyvals], caption, ['/' + dest, typef])])
def combo(key, value, format_, _):