summaryrefslogtreecommitdiffstats
path: root/filters/lib/common.lua
blob: d6f92e09e57a0aed696fe970c6bec950264939c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function wide(el)
    local els = pandoc.List()

    els:insert(pandoc.RawBlock("html", "</div>"))
    if pcall(function() return #el end) then
        els:extend(el)
    else
        els:insert(el)
    end
    els:insert(pandoc.RawBlock("html", "<div class=\"l-container l-container--narrow u-ml-0\">"))

    return els
end

return {
    wide = wide
}