summaryrefslogtreecommitdiff
path: root/filters/appendixes.lua
blob: a06736faa7eff87790c87a0d949ac1b9692daccf (plain)
1
2
3
4
5
6
7
8
9
10
11
function Str(elem)
    appendix = '\\appendix\\footnotesize'
    if elem.text == '{{appendixes}}' then
        if FORMAT:match 'tex$' then
            return pandoc.RawInline('latex', appendix, 'RawInline')
        end
        return pandoc.Null('Null')
    else
        return elem
    end
end