From ee9f7a5c231041caf4569d5faa0ef9c3e356c261 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Mon, 14 Feb 2022 02:21:35 -0800 Subject: [PATCH] pandoc-md: add pandoc-md (simple markdown to html converter) --- .config/shell/bin/pandoc-md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .config/shell/bin/pandoc-md diff --git a/.config/shell/bin/pandoc-md b/.config/shell/bin/pandoc-md new file mode 100755 index 0000000..e10e733 --- /dev/null +++ b/.config/shell/bin/pandoc-md @@ -0,0 +1,6 @@ +#!/bin/bash +if [ -f "$1.md" ]; then + pandoc -s "$1.md" -o "$1.html" +else + echo "Please specify a file name (without the .md extension)" +fi