diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua-filters.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md index e2a65fe1e..52e54cb5b 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -695,12 +695,12 @@ end function RawBlock(el) if starts_with('\\begin{tikzpicture}', el.text) then local filetype = extension_for[FORMAT] or 'svg' - local fname = system.get_working_directory() .. '/' .. - pandoc.sha1(el.text) .. '.' .. filetype + local fbasename = pandoc.sha1(el.text) .. '.' .. filetype + local fname = system.get_working_directory() .. '/' .. fbasename if not file_exists(fname) then tikz2image(el.text, filetype, fname) end - return pandoc.Para({pandoc.Image({}, fname)}) + return pandoc.Para({pandoc.Image({}, fbasename)}) else return el end |