at main 320 B view raw
1#!/bin/bash 2# 3# generates an HTML file from a supplied MD file in the current working directory 4# 5# uses a custom pandoc template 6 7FILE=$(gum input --placeholder "without an extension") 8 9HTML="pandoc/md2html.html" 10 11CSS="pandoc/md2html.css" 12 13pandoc --standalone "$FILE.md" --template=$HTML --no-highlight -o "$FILE.html"