diff options
Diffstat (limited to 'filters')
-rw-r--r-- | filters/headers.lua | 9 |
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 @@ | |||
1 | function Header(el) | 1 | function 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 |
16 | end | 9 | end |