<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-markdown.git/tests/misc/url_spaces.html, branch html</title>
<subtitle>github.com: waylan/Python-Markdown.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/'/>
<entry>
<title>No longer percent encode spaces in urls.</title>
<updated>2014-01-10T04:43:52+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan@gmail.com</email>
</author>
<published>2014-01-10T04:43:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=d0e088d535a478b9435ff49fd27583f5cb9c2641'/>
<id>d0e088d535a478b9435ff49fd27583f5cb9c2641</id>
<content type='text'>
The current implementation was wrong as it also percent encoded query strings
(which should be plus encoded) and calling urllib.quote on the path (and
urllib.quote_plus on the query string) assumes the url is not already encoded.
What if the document author pasted a url that was already encoded? She probably
did not intend for `%20` to become `%2520`. Or did she? It is now clear to me
why many implementation do nothing to urls. Just pass them though as-is. To bad
if they are not valid HTML. HTML authors have to encodee their own urls, so I
guess markdown authors have to as well.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The current implementation was wrong as it also percent encoded query strings
(which should be plus encoded) and calling urllib.quote on the path (and
urllib.quote_plus on the query string) assumes the url is not already encoded.
What if the document author pasted a url that was already encoded? She probably
did not intend for `%20` to become `%2520`. Or did she? It is now clear to me
why many implementation do nothing to urls. Just pass them though as-is. To bad
if they are not valid HTML. HTML authors have to encodee their own urls, so I
guess markdown authors have to as well.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #152. Spaces in links are now escaped.</title>
<updated>2012-10-21T19:02:19+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan@gmail.com</email>
</author>
<published>2012-10-21T19:02:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=0dc9ae0d62829a4b9856a3979c967facafc2d128'/>
<id>0dc9ae0d62829a4b9856a3979c967facafc2d128</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Replaced indentation with linebreaks only. At least its more consistant - and it better matches other markdown implementations. Also updated tests.</title>
<updated>2008-09-03T17:46:52+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan@gmail.com</email>
</author>
<published>2008-09-03T17:30:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=a1c636a05557b1faa207828c9e7102391bdde5c9'/>
<id>a1c636a05557b1faa207828c9e7102391bdde5c9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>A lot of bug fixes. Handlig attributes added, new hr processing. Reformatted test suite for ElementTree output.</title>
<updated>2008-07-14T11:17:33+00:00</updated>
<author>
<name>Artem Yunusov</name>
<email>nedrlab@gmail.com</email>
</author>
<published>2008-07-14T11:17:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=a316ac49a6934221b24ec58a6a7dc4c3b30ae1e8'/>
<id>a316ac49a6934221b24ec58a6a7dc4c3b30ae1e8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Added test cases</title>
<updated>2007-03-25T03:58:40+00:00</updated>
<author>
<name>Yuri Takhteyev</name>
<email>yuri@freewisdom.org</email>
</author>
<published>2007-03-25T03:58:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=0a1c1b5aeb62afa21bd676cfba6cf88821f1176f'/>
<id>0a1c1b5aeb62afa21bd676cfba6cf88821f1176f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
