diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-06-14 03:51:49 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-14 03:51:49 -0600 |
| commit | 36e7e1e0d79f5ff7b4ea75e61f01923ca06f1198 (patch) | |
| tree | 9f35f97df6f2c032856d212483552f3a069796f9 /features/xref.feature | |
| parent | 0810fd72d811bc954f958e3dec974ed5b6bd8f76 (diff) | |
resolves #3331 fix parsing of wrapped link and xref text PR (#3334)
Diffstat (limited to 'features/xref.feature')
| -rw-r--r-- | features/xref.feature | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/features/xref.feature b/features/xref.feature index e7f2bfde..5ddcf308 100644 --- a/features/xref.feature +++ b/features/xref.feature @@ -950,6 +950,63 @@ Feature: Cross References a< href='#_section_one' "The Premier Section" """ + Scenario: Does not parse text of xref macro as attribute if no attributes found + Given the AsciiDoc source + """ + == Section One + + content + + == Section Two + + refer to xref:_section_one[Section One + = First Section] + """ + When it is converted to html + Then the result should match the HTML structure + """ + .sect1 + h2#_section_one + |Section One + .sectionbody: .paragraph: p content + .sect1 + h2#_section_two Section Two + .sectionbody: .paragraph: p + |refer to + a< href='#_section_one' + |Section One + |= First Section + """ + + Scenario: Does not parse formatted text of xref macro as attributes + Given the AsciiDoc source + """ + == Section One + + content + + == Section Two + + refer to xref:_section_one[[.role]#Section + One#] + """ + When it is converted to html + Then the result should match the HTML structure + """ + .sect1 + h2#_section_one + |Section One + .sectionbody: .paragraph: p content + .sect1 + h2#_section_two Section Two + .sectionbody: .paragraph: p + |refer to + a< href='#_section_one' + span.role + |Section + |One + """ + Scenario: Can escape double quotes in text of xref macro using backslashes when text is parsed as attributes Given the AsciiDoc source """ |
