This repository has been archived on 2024-01-22. You can view files and clone it, but cannot push or open issues or pull requests.
speedie-page/scripts/markdown.sh
2023-01-13 15:54:33 +01:00

5 lines
216 B
Bash
Executable file

#!/bin/sh
[ -z "$1" ] && printf "You must specify a markdown document to convert to HTML.\n"
pandoc -f markdown -t html5 -o "$1.html" "$1" && printf "Converted '%s' to HTML (see '%s.md')\n" "$1" $1" || exit 1
exit 0