summaryrefslogtreecommitdiffstats
path: root/filters
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-06-11 09:44:04 +0200
committerVolpeon <git@volpeon.ink>2022-06-11 09:44:04 +0200
commit575278aba99139635adc3b1f9385befe57102541 (patch)
treed98a160167610717da37f6340b3884ba4224fe5d /filters
parentUpdate (diff)
downloadvolpeon.ink-575278aba99139635adc3b1f9385befe57102541.tar.gz
volpeon.ink-575278aba99139635adc3b1f9385befe57102541.tar.bz2
volpeon.ink-575278aba99139635adc3b1f9385befe57102541.zip
Re-implemented design via iro-design
Diffstat (limited to 'filters')
-rw-r--r--filters/headers.lua9
1 files changed, 1 insertions, 8 deletions
diff --git a/filters/headers.lua b/filters/headers.lua
index 4e3a689..b7ab542 100644
--- a/filters/headers.lua
+++ b/filters/headers.lua
@@ -1,16 +1,9 @@
1function Header(el) 1function Header(el)
2 if el.level == 1 then 2 if el.level == 1 then
3 local newchildren = pandoc.List() 3 local newchildren = pandoc.List()
4 newchildren:insert(pandoc.Span(el.content, { class = 's-headlines__title-inner' })) 4 newchildren:insert(pandoc.Span(el.content, { class = 's-headings__primary' }))
5 el.content = newchildren 5 el.content = newchildren
6 end 6 end
7 7
8 if el.level <= 3 and el.identifier ~= '' then
9 el.content:insert(pandoc.Space())
10 el.content:insert(pandoc.Link(pandoc.RawInline('html',
11 '<svg class="o-icon" width="1em" height="1em"><use href="/symbols.svg#icon-link"></use></svg>'),
12 '#' .. el.identifier, nil, { class = 's-headlines__link' }))
13 end
14
15 return el 8 return el
16end 9end