#!/usr/bin/env python3 import markdown import sys import io from pygments.formatters import HtmlFormatter from markdown.extensions.toc import TocExtension # The dark style is automatically selected if the browser is in dark mode light_style='pastie' dark_style='monokai' 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("