- A lex (I used flex, should be pretty portable though)
- GNU Make
- A C99 compiler (I used GCC)
make
it- Pipe your Markdown input to
md2roff
./md2roff markdown.md | groff -ms -Tpdf >output.pdf
./md2roff markdown.md | troff -ms | dpost >output.ps
Pandoc can do the same I think but it is written in Haskell and I don't use any Haskell programs so I tried to install Pandoc and it had too many dependencies so I decided to write my own alternative.
Copyright (C) 2019-2021 Ben O'Neill ben@oneill.sh. License: MIT. See LICENSE for more details.