Sha256: de66dcdebbe1b3146b33eeeb0c186eb976dd6ec398e4cc75696a5240e6e26f52
Contents?: true
Size: 601 Bytes
Versions: 1
Compression:
Stored size: 601 Bytes
Contents
-- https://github.com/Donearm/scripts/blob/master/lib/dirname.lua local function dirname(str) if str:match(".-/.-") then return string.gsub(str, "(.*/)(.*)", "%1") else return '' end end function CodeBlock(block) if block.classes[1] == "ditaa" then local img = pandoc.pipe( "java", { "-Djava.awt.headless=true", "-jar", dirname(PANDOC_SCRIPT_FILE) .. '/' .. "lib/ditaa-0.11.0-standalone.jar", "-", "-", "--svg", "--scale", "1.0" }, block.text ) return pandoc.Para({pandoc.RawInline("html", img)}) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
revealing-1.5.0 | tools/pandoc-ditaa-inline/ditaa-inline.lua |