pandoc

File Read

pandoc -t plain /path/to/input-file

File Write

echo DATA | pandoc -t plain -o /path/to/output-file

Inherit

This allows to run Lua code (`...`).

echo '...' >/path/to/temp-file
pandoc -L /path/to/temp-file /dev/null