We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tested on Ruby 3.0 with latest redcarpet master ref 50961ad (issue also present on latest release v3.5.1)
This code demonstrates the issue:
Redcarpet::Markdown.new(Redcarpet::Render::HTML, { autolink: true }).render('連絡先:test@test.com') #=> "<p>連絡先\xEF\xBC<a href=\"mailto:%9Atest@test.com\">\x9Atest@test.com</a></p>\n"
Notice presence of non-UTF-8 chars \xEF\xBC and \x9A. When using in a Rails view, etc. you'll get:
\xEF\xBC
\x9A
ArgumentError - invalid byte sequence in UTF-8
As a workaround, adding a normal whitespace char just before the email address prevents the issue.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Tested on Ruby 3.0 with latest redcarpet master ref 50961ad (issue also present on latest release v3.5.1)
This code demonstrates the issue:
Notice presence of non-UTF-8 chars
\xEF\xBC
and\x9A
. When using in a Rails view, etc. you'll get:As a workaround, adding a normal whitespace char just before the email address prevents the issue.
The text was updated successfully, but these errors were encountered: