Please sign in to comment.
Avoid rewinding previous inline when auto-linking
When a bit like "email@example.com" is processed, first the emphasis is rendered, then the 1 is output verbatim. When the `@` is encountered, Redcarpet tries to find the "local part" of the address and stops when it encounters an invalid char (i.e. here the `!`). The problem is that when it searches for the local part, Redcarpet rewinds the characters but here, the emphasis is already rendered so the previous HTML tag is rewinded as well and is not correctly closed.
- Loading branch information
Showing with 22 additions and 2 deletions.