#!/usr/bin/env python3 """Renders the markdown report as sanitized, inline-styled HTML for email clients.""" import re import sys import markdown import nh3 TAGS = {"h1", "h2", "h3", "h4", "p", "ul", "ol", "li", "table", "thead", "tbody", "tr", "th", "td", "code", "pre", "strong", "em", "br", "hr", "blockquote"} # mail clients drop