X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/ccb4254104ad6faa9225ce91b9a0610f24958022..2593cd813860d71bd85db48c919de3d6e41b8b57:/filters/html-converters/md2html diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html index 1488f48..59f43a8 100755 --- a/filters/html-converters/md2html +++ b/filters/html-converters/md2html @@ -1,7 +1,12 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import markdown import sys -print(''' +import io +from pygments.formatters import HtmlFormatter +from markdown.extensions.toc import TocExtension +sys.stdin = io.TextIOWrapper(sys.stdin.buffer, encoding='utf-8') +sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8') +sys.stdout.write(''' ''') -print("