hecanjog / gemini-pandoc-lua-filter

Pandoc Lua filter to transform HTML to text/gemini.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gemini-pandoc-lua-filter

A lua filter for pandoc to output gemini text.

Example

pandoc -f html -t plain --lua-filter gemini.lua examples/simple.html

Test

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.


About

Pandoc Lua filter to transform HTML to text/gemini.


Languages

Language:Lua 100.0%