aboutsummaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rwxr-xr-xfilters/html-converters/md2html3
1 files changed, 2 insertions, 1 deletions
diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html
index 67141ba..1488f48 100755
--- a/filters/html-converters/md2html
+++ b/filters/html-converters/md2html
@@ -1,5 +1,6 @@
#!/usr/bin/env python
import markdown
+import sys
print('''
<style>
.markdown-body {
@@ -281,5 +282,5 @@ print('''
''')
print("<div class='markdown-body'>")
# Note: you may want to run this through bleach for sanitization
-markdown.markdownFromFile(output_format="html5")
+markdown.markdownFromFile(input=sys.stdin, output_format="html5")
print("</div>")