hs.hsadmin.ng/doc/scenarios/to-html
Michael Hoennig c04da1ec4c generate HTML
2024-10-30 14:53:08 +01:00

12 lines
376 B
Bash
Executable File

#!/bin/bash
# This script loops over all markdown (.md) files in the current directory
# and converts each to an HTML file using pandoc using template.html.
# Origin of the template (GPL v3.0):
# https://github.com/ryangrose/easy-pandoc-templates/blob/master/html/easy_template.html
for file in *.md; do
pandoc "$file" --template template.html -o "${file%.md}.html"
done