summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/links_test.rb5
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/&lt;org&gt;/" class="bare">https://github.com/&lt;org&gt;/</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