diff options
Diffstat (limited to 'filters/code.lua')
-rw-r--r-- | filters/code.lua | 13 |
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 @@ | |||
1 | function 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 | ||
13 | end | ||