my tildelog

a few cats making occasional posts about technology

using pandoc markdown with bashblog

July 08, 2020 — ~cats

When I first ran bashblog, it didn’t seem to know how to find the markdown parser on this system, but pandoc is installed.

To solve this, I wrote a simple wrapper script to accept the calling convention that bashblog accepts and then to call pandoc:

#!/usr/bin/env sh

# Adapter so that bashblog can use pandoc markdown.

/usr/bin/pandoc \
    -o - \
    --from=markdown \
    --to=html \

I stored that path in the markdown_bin variable in my blog .config file, and set file permissions:

chmod u=rwx,go=r "$markdown_bin"

Now I can write posts with Markdown!

tags: pandoc, bashblog