# HG changeset patch # User Meredith Howard # Date 1627453135 18000 # Node ID 97b6cf0bd6018f3f3f3fa04168e2bddf04d93386 # Parent 9674b3a2ad41fef345000374a1c092d9cb404c52 general-purpose md2html diff --git a/.pandoc/templates/md2html.html5 b/.pandoc/templates/md2html.html5 new file mode 100644 --- /dev/null +++ b/.pandoc/templates/md2html.html5 @@ -0,0 +1,51 @@ + + + + + + $if(docmeta-title)$$docmeta-title$$else$$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$$endif$ + + + +$if(toc)$ + +$endif$ +
+$body$ +
+ + diff --git a/bin/md2html b/bin/md2html new file mode 100755 --- /dev/null +++ b/bin/md2html @@ -0,0 +1,11 @@ +#!/bin/sh +exec pandoc \ + --quiet \ + --standalone \ + -f markdown+smart \ + -t html5 \ + --toc \ + --toc-depth=5 \ + --self-contained \ + --template=md2html \ + $*