Example with the built-in Lua filters:
-- links-to-html.lua
function Link(el)
el.target = string.gsub(el.target, "%.md", ".html")
return el
end
Then:
pandoc -f markdown -t html5 input.md -o output.html --lua-filter=links-to-html.lua
Example with the built-in Lua filters:
-- links-to-html.lua
function Link(el)
el.target = string.gsub(el.target, "%.md", ".html")
return el
end
Then:
pandoc -f markdown -t html5 input.md -o output.html --lua-filter=links-to-html.lua