You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uff, I just tried to debug for an hour why there were some weird renderings. Here's another interesting example.
The HTML code to feed Goldmark:
<videoautoplaymutedloop><sourcesrc="https://example.com/example.mp3" type="video/mp4">
Your browser does not support the video tag.
</video>
As an input with \r\n as end line:
input:="<video autoplay muted loop>\r\n<source src=\"https://example.com/example.mp4\" type=\"video/mp4\">\r\nYour browser does not support the video tag.\r\n</video>"
The output will be:
<p><videoautoplaymutedloop></p><sourcesrc="https://example.com/example.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
Note that the input string contains
\r\n
. There are no problems when\n
is used instead of\r\n
.Output with v1.4.1 (PASS):
Output with v1.4.2 and v1.4.3 (FAIL):
The text was updated successfully, but these errors were encountered: