summaryrefslogtreecommitdiffstats
path: root/filters/code.lua
diff options
context:
space:
mode:
Diffstat (limited to 'filters/code.lua')
-rw-r--r--filters/code.lua13
1 files changed, 0 insertions, 13 deletions
diff --git a/filters/code.lua b/filters/code.lua
deleted file mode 100644
index aca3ce8..0000000
--- a/filters/code.lua
+++ /dev/null
@@ -1,13 +0,0 @@
1function CodeBlock(el)
2 if el.classes[1] == "plain" then
3 el = pandoc.Div({ el }, { class = 's-code' })
4 elseif el.classes[1] then
5 local formatted = pandoc.pipe('pygmentize', {
6 '-l', el.classes[1], '-f', 'html', '-O', 'cssclass=s-code s-code--highlight',
7 }, el.text)
8
9 if formatted then el = pandoc.RawBlock('html', formatted) end
10 end
11
12 return el
13end