pinosaur
/
pinopress.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
envsubst
[pinopress.git]
/
modules
/
md
diff --git
a/modules/md
b/modules/md
index
5dbcc41
..
1a4ae98
100755
(executable)
--- a/
modules/md
+++ b/
modules/md
@@
-2,12
+2,14
@@
## markdown to html module for pinopress
## based off https://github.com/stamby/md-to-html
## 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
# html style comments
-s/<!--(.*)-->//g
+/<!--(.*)-->/d
# special html characters
s/\&/\&\;/g
# special html characters
s/\&/\&\;/g