use markdown + html5lib to structure the text

master
Michael Murtaugh 5 years ago
parent 0ce9ba7932
commit 2b9cf12140

@ -13,11 +13,14 @@ f = urlopen(pad_text_url)
pad_text = f.read().decode('utf-8')
pad_text = sample_text
print (pad_text)
print ()
# print (pad_text)
# Turn pad text into html text
html = markdown.markdown(pad_text)
print (html)
print ()
# Turn html text in an elementtree
t = html5lib.parseFragment(html, namespaceHTMLElements=False)

Loading…
Cancel
Save