md2page
1#!/usr/bin/env bash
2
3FILE=$(gum file)
4HTML="$HOME/Scripts/pandoc/md2html.html"
5
6if [[ -f "$FILE" ]]; then
7 pandoc --standalone "$FILE" --template="$HTML" --no-highlight --wrap=none -o "${FILE%.*}.html"
8else
9 exit 1
10fi
1#!/usr/bin/env bash
2
3FILE=$(gum file)
4HTML="$HOME/Scripts/pandoc/md2html.html"
5
6if [[ -f "$FILE" ]]; then
7 pandoc --standalone "$FILE" --template="$HTML" --no-highlight --wrap=none -o "${FILE%.*}.html"
8else
9 exit 1
10fi