A naive proof of the concept Lua filter for removing [[
wikilinks from markdown file.
function Str (str)
return (str.text:gsub('%[%[', '')
:gsub('%]%]', ''))
end
When the filter is saved under name cleanwiki.lua
it might be used with the flag --lua-filter=cleanwiki.lua
or added to yaml as
pandoc_args:
- --lua-filter=raise-header.lua