From c7eb8d7f6105a5a15a1f45b5e2be3c2d1e2204bd Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 19 Mar 2021 22:10:55 +0100 Subject: WIP: Redesign --- filters/common_actions.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'filters') diff --git a/filters/common_actions.lua b/filters/common_actions.lua index fbbff6d..6070c7e 100644 --- a/filters/common_actions.lua +++ b/filters/common_actions.lua @@ -1,6 +1,6 @@ function CodeBlock(el) if next(el.classes) == nil then - el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--pre'} + el.classes = el.classes .. {'c-page__pre'} elseif el.classes[1] == "plain" then el = pandoc.Div({el}, {class = 's-code'}) else @@ -16,11 +16,11 @@ end function Header(el) if el.level == 1 then - el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--h1'} + el.classes = el.classes .. {'c-page__h1'} elseif el.level == 2 then - el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--h2'} + el.classes = el.classes .. {'c-page__h2'} elseif el.level == 3 then - el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--h3'} + el.classes = el.classes .. {'c-page__h3'} end return el end -- cgit v1.2.3-70-g09d2