summaryrefslogtreecommitdiff
path: root/filters/anchored-h.lua
blob: 7d80121b52a99069adfacb53ab9565d0d8b7e848 (plain)
1
2
3
4
5
6
7
8
9
if FORMAT:match 'html' then
    function Header(el)
        local l = pandoc.Link("¶", "#"..el.identifier)
        l.classes[1]="anchor"
        el.content[#el.content+1] = pandoc.Space()
        el.content[#el.content+1] = l
        return el
    end
end