envsubst
[pinopress.git] / modules / md
index 5dbcc41..1a4ae98 100755 (executable)
@@ -2,12 +2,14 @@
 
 ## markdown to html module for pinopress
 ## based off https://github.com/stamby/md-to-html
-# input $1 - filepath to html file
+## usage:
+##      md [md_filepath]
 
-# parse header of document
+# remove document meta
+/^-- \w+: .+$/d
 
 # html style comments
-s/<!--(.*)-->//g
+/<!--(.*)-->/d
 
 # special html characters
 s/\&/\&amp\;/g