From 913e02af72e38249242054a0c73c7686a21bc70a Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 26 Sep 2013 21:17:31 -0400 Subject: [PATCH 1/2] track too --- templates/index.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/templates/index.html b/templates/index.html index 4889d49..39726b6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -17,5 +17,18 @@ a Markdown representation of that page.

Fork me on GitHub + \ No newline at end of file From a8b44eabcd68b90ffc26133b9d0a3df43fc06d0b Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 30 Sep 2013 05:02:55 -0400 Subject: [PATCH 2/2] unicode, bitch (breaking bad) --- converter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/converter.py b/converter.py index a089deb..cae5be9 100644 --- a/converter.py +++ b/converter.py @@ -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)