Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
function convert_file {
infile=$1
outfile=`echo $infile | sed 's/\.md$/\.html/'`
echo "Converting $infile to $outfile... "
cat > $outfile <<EOF
<!DOCTYPE html>
<html>
<head>