#!/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