md2x is a converter that takes in markdown and converts it to other formats (currently being HTML and Gemtext). I know pandoc exists, but making my own thing is fun.
It's written in D, and is available on tildegit
. I'm not sure if it will build with the gdc that's currently installed on ctrl-c, I haven't tried it (I keep my own local ldc2 installation, since that's the compiler I prefer and it's also more up to date since it's not from a repo). If you're on ctrl-c, you can grab it from ~sshdaemon/public_bin/md2x if you don't feel like compiling it yourself.
Here's the commandline arguments:
Options: -i --input Input file -o --output Output file. If unspecified, output is printed to stdout. -f --format Output format (either html or gemtext). -d --dir Treat input and output as directories. This will convert all *.md files in one directory and output them to other one, creating directories as needed. -v --verbose Print out extra info. -t --template Specifies a template file. The string '$text