X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/525c815cc400bc49881144bcd7e7b717bbc1af5d..143e65252c1c842774bc5a601d5faef97ca6c886:/filters/html-converters/md2html diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html index 138713d..67141ba 100755 --- a/filters/html-converters/md2html +++ b/filters/html-converters/md2html @@ -1,5 +1,6 @@ -#!/bin/sh -cat <<_EOF +#!/usr/bin/env python +import markdown +print(''' -_EOF -echo "
" -markdown_py -o html5 -echo "
" +''') +print("
") +# Note: you may want to run this through bleach for sanitization +markdown.markdownFromFile(output_format="html5") +print("
")