xijo / reverse_markdown

Ruby gem to convert html into markdown
Do What The F*ck You Want To Public License
628 stars 118 forks source link

Fix text escaping #58

Closed willglynn closed 9 years ago

willglynn commented 9 years ago

At this time, the Markdown:

<p>&lt;foo&gt;</p>

…reverses into:

<foo>

…which re-renders into HTML as:

<p><foo></p>

This changeset changes the resulting Markdown to:

\<foo\>
xijo commented 9 years ago

@willglynn Nice catch, thanks for the contribution!