Escaping "<"

Jelks Cabaniss jelks at jelks.nu
Thu Mar 17 16:44:08 EST 2005


Michel Fortin wrote:
>>> 	He works for AT&T; he has a nice job.
>>> 
>>> Markdown thinks `&T;` is an entity.
>> 
>> ???
>> 
>> Markdown currently allows AT&T with no escaping of the ampersand --
>> it knows the difference between a non-entity like `&T` on one hand
>> and `&copy;`, `&ouml;`, etc. on the other.  The AT&T example is even
>> on the syntax page, or maybe I'm misunderstanding what you're saying.
> 
> Have you noticed there is a semicolon just after "AT&T" in that
> example? 

Ahhhh...   *Now* I see it.  :)

> This is a very narrow case where a semicolon follows a word
> that contains an ampersand, in which case the text between `&` and `;`
> is thought to be an entity name. Markdown has not hard-coded list of
> every existing entity to check that `&T;` is not a valid one, so if it
> looks like an entity it will treat it like it is.

Yes, and I think your idea of having a way to escape "special" characters is
a good one.

/Jelks




More information about the Markdown-Discuss mailing list