markdown

Markdown interpreter using only traditional Unix tools

markdown.bash is a Markdown interpreter using only traditional Unix tools. Specifically, it only uses bash, sed, grep, and cut (in one small instance).

$ bpkg install markdown.bash

Usage

Use it just like any other Unix program - by either passing files to it or piping input into it.

# Converts `test.md` to HTML and sends to
# standard output
markdown.sh samples/test.md

# Concatenates all the files and converts
# them all from Markdown to HTML into `output.html`
markdown.sh file1 file2 file3 > output.html

# Also accepts Markdown piped into it
echo "# heading1\n\nparagraph" | markdown.sh

Published: June 17 2014

blog comments powered by Disqus