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
The following test should succeed, but it doesn't. Instead of #main-bar the output contains only #main. One can use this test to implement the feature. Unfortunately my C skills are kind of rusty.
class HTMLTOCRenderTest < Redcarpet::TestCase
...
def test_converting_ampersand_correctly
markdown = "# Main & Headline"
output = render(markdown)
assert output.match("<a href=\"#main-bar\">Main & Headline</a>")
end
end
Would be great!
Best regards,
Lukas
The text was updated successfully, but these errors were encountered:
Sorry for the late reply. Indeed, this was a bug on our side due to the fact that HTML entities are stripped out from the generated anchor so dealing with the & char requires an extra check. This should be fixed in the next Redcarpet release.
Hi!
Thanks for this great gem!
The following test should succeed, but it doesn't. Instead of
#main-bar
the output contains only#main
. One can use this test to implement the feature. Unfortunately my C skills are kind of rusty.Would be great!
Best regards,
Lukas
The text was updated successfully, but these errors were encountered: