~darklands/md2roff

markdown to roff ms compiler
c68c4317 — Ben O'Neill 1 year, 2 months ago
Fix arguments with stdin
50d345f7 — Ben O'Neill 1 year, 2 months ago
Add more comments mostly
2608860f — Ben O'Neill 1 year, 2 months ago
Add support for multiple arguments per argv string

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~darklands/md2roff
read/write
git@git.sr.ht:~darklands/md2roff

You can also use your local clone with git send-email.

#md2roff

#Prerequisites

  • A lex (I used flex, should be pretty portable though)
  • GNU Make
  • A C99 compiler (I used GCC)

#How??

  • make it
  • Pipe your Markdown input to md2roff

#How?? (Part 2) (for UNIX noobs using groff)

./md2roff markdown.md | groff -ms -Tpdf >output.pdf

#How?? (Part 2) (for UNIX chads using Heirloom Doctools)

./md2roff markdown.md | troff -ms | dpost >output.ps

#Why??

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.