aboutsummaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rwxr-xr-xfilters/html-converters/md2html15
1 files changed, 6 insertions, 9 deletions
diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html
index 1488f48..138713d 100755
--- a/filters/html-converters/md2html
+++ b/filters/html-converters/md2html
@@ -1,7 +1,5 @@
-#!/usr/bin/env python
-import markdown
-import sys
-print('''
+#!/bin/sh
+cat <<_EOF
<style>
.markdown-body {
font-size: 14px;
@@ -279,8 +277,7 @@ print('''
border: none;
}
</style>
-''')
-print("<div class='markdown-body'>")
-# Note: you may want to run this through bleach for sanitization
-markdown.markdownFromFile(input=sys.stdin, output_format="html5")
-print("</div>")
+_EOF
+echo "<div class='markdown-body'>"
+markdown_py -o html5
+echo "</div>"