A lua filter for pandoc to output gemini text.
pandoc -f html -t plain --lua-filter gemini.lua examples/simple.html
pandoc -f html -t plain --lua-filter gemini.lua examples/simple.html -o /tmp/simple.gmi
diff /tmp/simple.gmi test/output/simple.gmi
The exit code of the diff
command should be 0
.