Goldmark is a really solid library, thanks a lot for making it!
This bug is not really important, the user won't really notice. But it differs from the CommonMark implementation, so I wanted to report it nevertheless.
\ backslash used for escaping
` backtick used for code
Background
First, I learned that an unescaped backtick in the image alt could (accidentally) trigger an inline code. By escaping the backtick, the markdown renders correctly (see Screenshot 1).
However the behaviour of the CommonMark Demo and Goldmark differ. In Goldmark the \ backslash stays in the rendered html (see Screenshot 2).
This causes the backslash to unexpectedly render in the browser (see Screenshot 3).
Goldmark is a really solid library, thanks a lot for making it!
This bug is not really important, the user won't really notice. But it differs from the CommonMark implementation, so I wanted to report it nevertheless.
\
backslash used for escaping`
backtick used for codeBackground
First, I learned that an unescaped backtick in the image
alt
could (accidentally) trigger an inline code. By escaping the backtick, the markdown renders correctly (see Screenshot 1).However the behaviour of the CommonMark Demo and Goldmark differ. In Goldmark the
\
backslash stays in the rendered html (see Screenshot 2).This causes the backslash to unexpectedly render in the browser (see Screenshot 3).
Steps to Reproduce