forked from vmg/redcarpet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,6 +149,12 @@ def test_whitespace_after_urls | |
assert_equal expected, output | ||
end | ||
|
||
def test_auto_linked_email_utf8_issue | ||
rd = render_with({ autolink: true }, "[email protected]」\n[email protected]ü") | ||
exp = %{<p><a href="mailto:[email protected]">[email protected]</a>」\n<a href="mailto:[email protected]">[email protected]</a>ü</p>\n} | ||
assert_equal exp, rd | ||
end | ||
|
||
def test_memory_leak_when_parsing_char_links | ||
render(<<-leaks.strip_heredoc) | ||
2. Identify the wild-type cluster and determine all clusters | ||
|