summaryrefslogtreecommitdiffstats
path: root/filters
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-03-19 22:10:55 +0100
committerVolpeon <git@volpeon.ink>2021-03-19 22:10:55 +0100
commitc7eb8d7f6105a5a15a1f45b5e2be3c2d1e2204bd (patch)
tree4792d0f38463a15ca352118e8264a4813c05e15e /filters
parentAdded better font for text (Iosevka Aile) (diff)
downloadvolpeon.ink-c7eb8d7f6105a5a15a1f45b5e2be3c2d1e2204bd.tar.gz
volpeon.ink-c7eb8d7f6105a5a15a1f45b5e2be3c2d1e2204bd.tar.bz2
volpeon.ink-c7eb8d7f6105a5a15a1f45b5e2be3c2d1e2204bd.zip
WIP: Redesign
Diffstat (limited to 'filters')
-rw-r--r--filters/common_actions.lua8
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 @@
1function CodeBlock(el) 1function 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
17function Header(el) 17function 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
26end 26end