diff options
Diffstat (limited to 'filters')
-rw-r--r-- | filters/common_actions.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filters/common_actions.lua b/filters/common_actions.lua index abb15a1..9ebcf17 100644 --- a/filters/common_actions.lua +++ b/filters/common_actions.lua | |||
@@ -2,11 +2,11 @@ function CodeBlock(el) | |||
2 | if next(el.classes) == nil then | 2 | if next(el.classes) == nil then |
3 | el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--pre'} | 3 | el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--pre'} |
4 | elseif el.classes[1] == "plain" then | 4 | elseif el.classes[1] == "plain" then |
5 | el = pandoc.Div({el}, {class = 'c-page__code s-code s-code--plain'}) | 5 | el = pandoc.Div({el}, {class = 's-code'}) |
6 | else | 6 | else |
7 | local formatted = pandoc.pipe('pygmentize', { | 7 | local formatted = pandoc.pipe('pygmentize', { |
8 | '-l', el.classes[1], '-f', 'html', '-O', | 8 | '-l', el.classes[1], '-f', 'html', '-O', |
9 | 'cssclass=c-page__code s-code' | 9 | 'cssclass=s-code s-code--highlight' |
10 | }, el.text) | 10 | }, el.text) |
11 | el = pandoc.RawBlock('html', formatted) | 11 | el = pandoc.RawBlock('html', formatted) |
12 | end | 12 | end |