mirror of
https://github.com/not-kennethreitz/markdownplease.com.git
synced 2026-06-05 23:20:19 +00:00
unicode, bitch (breaking bad)
This commit is contained in:
+2
-2
@@ -19,8 +19,8 @@ def readability(url):
|
||||
|
||||
def convert(html, title=None):
|
||||
if title:
|
||||
title = '# {}'.format(title)
|
||||
html = '\n\n'.join([title, html])
|
||||
title = u'# {}'.format(title)
|
||||
html = u'\n\n'.join([title, html])
|
||||
|
||||
return html2text(html)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user