X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fmd;h=1a4ae985169816964b6bca6fecaecccd145d1c06;hb=d9e98960c517be5806c756518f46827cf59d0471;hp=5dbcc41d12e71a4b6d3d7f52fae4689334c50957;hpb=8f843459581548b8a806a5ab8178efc4c7cfdd89;p=pinopress.git diff --git a/modules/md b/modules/md index 5dbcc41..1a4ae98 100755 --- 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 -# 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/\&/\&\;/g