X-Git-Url: https://git.danieliu.xyz/?p=pinopress.git;a=blobdiff_plain;f=modules%2Fmd;fp=modules%2Fmd;h=717e395896036b651e82775b8f2a6254550c42aa;hp=5dbcc41d12e71a4b6d3d7f52fae4689334c50957;hb=65d70f73b4e67c4c5768a15bb85d1dcfb1a66351;hpb=8f843459581548b8a806a5ab8178efc4c7cfdd89 diff --git a/modules/md b/modules/md index 5dbcc41..717e395 100755 --- a/modules/md +++ b/modules/md @@ -4,10 +4,11 @@ ## based off https://github.com/stamby/md-to-html # input $1 - filepath to html file -# parse header of document +# remove document meta +/^-- \w+: .+$/d # html style comments -s///g +//d # special html characters s/\&/\&\;/g