X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/8149be213f1c8f52b0dbe6c213f6073af57fa954..bd68c98879ecc8ce9f7f6d3e01bc4ffeb9182b04:/filters/html-converters/md2html diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html index 5cab749..dc20f42 100755 --- a/filters/html-converters/md2html +++ b/filters/html-converters/md2html @@ -1,2 +1,307 @@ -#!/bin/sh -exec "$(dirname "$0")/resources/markdown.pl" +#!/usr/bin/env python3 +import markdown +import sys +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(''' + +''') +sys.stdout.write("