From f3e649f674b739a8f50460f809eb8df2c13ff576 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 7 Jan 2021 20:48:05 +0100 Subject: Optimized CSS for code blocks --- filters/common_actions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filters') 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) if next(el.classes) == nil then el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--pre'} elseif el.classes[1] == "plain" then - el = pandoc.Div({el}, {class = 'c-page__code s-code s-code--plain'}) + el = pandoc.Div({el}, {class = 's-code'}) else local formatted = pandoc.pipe('pygmentize', { '-l', el.classes[1], '-f', 'html', '-O', - 'cssclass=c-page__code s-code' + 'cssclass=s-code s-code--highlight' }, el.text) el = pandoc.RawBlock('html', formatted) end -- cgit v1.2.3-70-g09d2