Ampersand in text flow and URIs

What is happening in text flow and URI

# Ampersand in text flow

https://github.com/karlcow/markdown-testsuite/blob/master/tests/ampersand-text-flow.md

Input:
An ampersand & in the text flow is escaped as an html entity.

Output:
<p>An ampersand &amp; in the text flow is escaped as an html entity.</p>

http://johnmacfarlane.net/babelmark2/?text=An+ampersand+%26+in+the+text+flow+is+escaped+as+an+html+entity.

Github Markdown does the same thing.



# Ampersand in URIs

https://github.com/karlcow/markdown-testsuite/blob/master/tests/ampersand-uri.md

Input 
There is an [ampersand](http://validator.w3.org/check?uri=http://www.w3.org/&verbose=1) in the URI.

Output:
<p>There is an <a href="http://validator.w3.org/check?uri=http://www.w3.org/&amp;verbose=1">ampersand</a> in the URI.</p>

http://johnmacfarlane.net/babelmark2/?text=There+is+an+%5Bampersand%5D(http%3A%2F%2Fvalidator.w3.org%2Fcheck%3Furi%3Dhttp%3A%2F%2Fwww.w3.org%2F%26verbose%3D1)+in+the+URI.

Github Markdown does the same thing.


Are there any other constructs to consider?


-- 
Karl Dubost - http://dev.opera.com/
Developer Relations, Opera Software

Received on Monday, 26 November 2012 08:22:40 UTC