about summary refs log tree commit diff stats
path: root/filters/html-converters/md2html
diff options
context:
space:
mode:
Diffstat (limited to 'filters/html-converters/md2html')
-rwxr-xr-xfilters/html-converters/md2html15
1 files changed, 9 insertions, 6 deletions
diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html index 138713d..1488f48 100755 --- a/filters/html-converters/md2html +++ b/filters/html-converters/md2html
@@ -1,5 +1,7 @@
1#!/bin/sh 1#!/usr/bin/env python
2cat <<_EOF 2import markdown
3import sys
4print('''
3<style> 5<style>
4.markdown-body { 6.markdown-body {
5 font-size: 14px; 7 font-size: 14px;
@@ -277,7 +279,8 @@ cat <<_EOF
277 border: none; 279 border: none;
278} 280}
279</style> 281</style>
280_EOF 282''')
281echo "<div class='markdown-body'>" 283print("<div class='markdown-body'>")
282markdown_py -o html5 284# Note: you may want to run this through bleach for sanitization
283echo "</div>" 285markdown.markdownFromFile(input=sys.stdin, output_format="html5")
286print("</div>")