kjdev / hoextdown

Hoextdown is an extension to Hoedown
MIT License
23 stars 15 forks source link

Fix escaped backticks in codespans again #19

Closed jasharpe closed 9 years ago

jasharpe commented 9 years ago

The existing behavior is wrong according to the original Markdown test suite. It is clear in the "test/MarkdownTest_1.0.3/Tests/Backslash escapes.text" test case that backslashes should be preserved in the HTML output, if they're inside codespans, but the existing behavior of the code is to strip backslashes before backticks out.

As a bonus this significantly simplifies codespan parsing code.