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