summaryrefslogtreecommitdiffstats
path: root/filters/headers.lua
blob: ea9cde63193dff74c210ae256903d116721fb025 (plain) (blame)
1
2
3
4
5
6
7
8
9
function Header(el)
    if el.level <= 3 then
        local newchildren = pandoc.List()
        newchildren:insert(pandoc.Span(el.content, { class = 's-headings__primary' }))
        el.content = newchildren
    end

    return el
end