hs.hsadmin.ng/doc/scenarios/to-html

12 lines
376 B
Plaintext
Raw Normal View History

2024-10-30 14:53:08 +01:00
#!/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