X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/3f9e14ada1e9cb3bb5b162f10f824336e3142440..b73df8098f261ecbd4bc5ba689f9766a1a75f9a0:/filters/html-converters/md2html diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html index 67141ba..ebf3856 100755 --- a/filters/html-converters/md2html +++ b/filters/html-converters/md2html @@ -1,6 +1,11 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import markdown -print(''' +import sys +import io +from pygments.formatters import HtmlFormatter +sys.stdin = io.TextIOWrapper(sys.stdin.buffer, encoding='utf-8') +sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8') +sys.stdout.write(''' ''') -print("