bobtfish / text-markdown

The perl Text::Markdown CPAN module
Other
50 stars 21 forks source link

Edge case for angle bracket encoding #4

Open dandv opened 15 years ago

dandv commented 15 years ago

Migrated from https://rt.cpan.org/Ticket/Display.html?id=33443

Input: x<max(a,b)

The Dingus says: <p>x<max(a,b)</p>

Expect: <p>x&lt;max(a,b)</p>

Mon Mar 17 2008 BOBTFISH - Correspondence added

This is expected. Angle encoding only happens when the angle bracket is surrounded by whitespace.

That said, I'll have a look at what the other Markdown implementations do here, and if they're all behaving differently, I may do that..

http://babelmark.bobtfish.net/?markdown=x%3Cmax%28a%2Cb%29