From ccb4254104ad6faa9225ce91b9a0610f24958022 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 12 Oct 2015 16:42:48 +0200 Subject: md2html: use pure python Signed-off-by: Jason A. Donenfeld --- filters/html-converters/md2html | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'filters/html-converters/md2html') 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(''' -_EOF -echo "
" -markdown_py -o html5 -echo "
" +''') +print("
") +# Note: you may want to run this through bleach for sanitization +markdown.markdownFromFile(input=sys.stdin, output_format="html5") +print("
") -- cgit 1.4.1