about summary refs log tree commit diff
path: root/filters/html-converters
diff options
context:
space:
mode:
Diffstat (limited to 'filters/html-converters')
-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 @@
-#!/bin/sh
-cat <<_EOF
+#!/usr/bin/env python
+import markdown
+import sys
+print('''
 <style>
 .markdown-body {
     font-size: 14px;
@@ -277,7 +279,8 @@ cat <<_EOF
     border: none;
 }
 </style>   
-_EOF
-echo "<div class='markdown-body'>"
-markdown_py -o html5
-echo "</div>"
+''')
+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>")
0:48:17 +0100'>2014-01-17cgit.c: free tmp variableJason A. Donenfeld 2014-01-17Switch to exclusively using global ctxLukas Fleischer 2014-01-16auth: have cgit calculate login addressJason A. Donenfeld 2014-01-16auth: lua string comparisons are time invariantJason A. Donenfeld 2014-01-16authentication: use hidden form instead of refererJason A. Donenfeld 2014-01-16auth: add basic authentication filter frameworkJason A. Donenfeld 2014-01-16t0111: Additions and fixesLukas Fleischer 2014-01-16parsing.c: Remove leading space from committerLukas Fleischer