Skip to content

Instantly share code, notes, and snippets.

View alexsosic's full-sized avatar

Aleksandar Sosic alexsosic

View GitHub Profile
# I place this in the public domain
# This only handles non-nested lists, emphasis, headings and horizontal rules (which are converted to page breaks)
# Sufficient for converting Markdown generated HTML to reportlab flowables...
import xml.sax as sax
def html_to_rl(html, styleSheet):
elements = list()