From d3ded5a0d5b39556d5a0d04a8c9af0acecb8f759 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 16 May 2024 01:08:07 -0600 Subject: add test for link macro inside xref shorthand --- test/links_test.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/links_test.rb b/test/links_test.rb index c78b1b9e..db4f3900 100644 --- a/test/links_test.rb +++ b/test/links_test.rb @@ -110,6 +110,11 @@ context 'Links' do assert_include 'Example', output end + test 'xref shorthand with link macro as target should be ignored' do + output = convert_string_to_embedded '<>' + assert_include '<<https://example.com, Example>>', output + 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 -- cgit v1.2.3