diff --git a/test/links_test.rb b/test/links_test.rb index efff8293d..8d8299dce 100644 --- a/test/links_test.rb +++ b/test/links_test.rb @@ -105,6 +105,11 @@ assert_xpath '//p[text()=""]', convert_string('<\\http://asciidoc.org>'), 1 end + test 'autolink containing text enclosed in angle brackets' do + output = convert_string_to_embedded 'https://github.com//' + assert_include 'https://github.com/<org>/', 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