evilstreak / markdown-js

A Markdown parser for javascript
7.69k stars 863 forks source link

Don't convert ampersands when they form part of an HTML entity #227

Closed stilvoid closed 9 years ago

stilvoid commented 9 years ago

The mardown spec allows for the use HTML entities.

The current markdown-js always converts '&' into '&'.

This patch allows 'AT&T' and 'X < Y' to work as intended.

ashb commented 9 years ago

This relates to #16 - right now this markdown parser does not support any HTML - tags or entities - and I'm not 100% sold on a partial solution