diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2024-03-15 14:21:39 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2024-03-15 14:21:39 -0600 |
| commit | 340b531d5490a47133797a0fcadf08103d635461 (patch) | |
| tree | b8f60eaae5d18f76debb57d32ea9a5029bc22d32 | |
| parent | 603582a1b2230f0180b67e7e2efb79658a5ea015 (diff) | |
add test for autolink that contains text enclosed in angle brackets and ends with /
| -rw-r--r-- | test/links_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/links_test.rb b/test/links_test.rb index efff8293..8d8299dc 100644 --- a/test/links_test.rb +++ b/test/links_test.rb @@ -105,6 +105,11 @@ context 'Links' do assert_xpath '//p[text()="<http://asciidoc.org>"]', convert_string('<\\http://asciidoc.org>'), 1 end + test 'autolink containing text enclosed in angle brackets' do + output = convert_string_to_embedded 'https://github.com/<org>/' + assert_include '<a href="https://github.com/<org>/" class="bare">https://github.com/<org>/</a>', output + end + test 'qualified url surrounded by round brackets' do assert_xpath '//a[@href="http://asciidoc.org"][text()="http://asciidoc.org"]', convert_string('(http://asciidoc.org) is the project page for AsciiDoc.'), 1 end |
