aboutsummaryrefslogtreecommitdiff
path: root/etc/process-md.lua
blob: f0e11dc33c1887ea0c7f26bf3f69a86a5ce1ca2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function Pandoc(doc)
    local title_header = pandoc.Header(1, '')
    local title = doc.meta.title
    title_header.content = title
    doc.blocks:insert(1, title_header)
    return doc
end

function Link(node)
    node.target = node.target:gsub(".md", ".html")
    return node
end