From b846debebc24a699b9feef9af10233ff1a876bbd Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 7 Jan 2021 20:23:18 +0100 Subject: Small design adjustments, added support for code blocks marked as 'plain' --- filters/common_actions.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'filters') diff --git a/filters/common_actions.lua b/filters/common_actions.lua index a358b99..abb15a1 100644 --- a/filters/common_actions.lua +++ b/filters/common_actions.lua @@ -1,6 +1,8 @@ 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'}) else local formatted = pandoc.pipe('pygmentize', { '-l', el.classes[1], '-f', 'html', '-O', -- cgit v1.2.3-70-g09d2