tfager / pandoc-pmwiki-reader

Lua script to read PMWiki markup into pandoc
MIT License
1 stars 0 forks source link

pandoc-pmwiki-reader

Lua script to read PMWiki markup into pandoc

Try it out with:

pandoc -f pmwiki_reader.lua -t gfm --wrap=preserve testfile.pmwiki

Note that PMWiki stores other metadata in its data files besides the PMWiki markup, so you will need to preprocess them, for example like so:

cat wiki.d/Example.Page | grep -a "^text=" | sed "s/^text=//" | sed "s/%0a/\n/g" | sed "s/%25/%/g" | sed "s/%3c/</g" | pandoc -f pmwiki_reader.lua -o Example.Page.pdf

Issues