diff options
Diffstat (limited to 'filters')
-rw-r--r-- | filters/common_actions.lua | 8 |
1 files changed, 4 insertions, 4 deletions
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 @@ | |||
1 | function CodeBlock(el) | 1 | 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__pre'} |
4 | elseif el.classes[1] == "plain" then | 4 | elseif el.classes[1] == "plain" then |
5 | el = pandoc.Div({el}, {class = 's-code'}) | 5 | el = pandoc.Div({el}, {class = 's-code'}) |
6 | else | 6 | else |
@@ -16,11 +16,11 @@ end | |||
16 | 16 | ||
17 | function Header(el) | 17 | function Header(el) |
18 | if el.level == 1 then | 18 | if el.level == 1 then |
19 | el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--h1'} | 19 | el.classes = el.classes .. {'c-page__h1'} |
20 | elseif el.level == 2 then | 20 | elseif el.level == 2 then |
21 | el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--h2'} | 21 | el.classes = el.classes .. {'c-page__h2'} |
22 | elseif el.level == 3 then | 22 | elseif el.level == 3 then |
23 | el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--h3'} | 23 | el.classes = el.classes .. {'c-page__h3'} |
24 | end | 24 | end |
25 | return el | 25 | return el |
26 | end | 26 | end |