summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2021-09-14 23:55:40 -0600
committerDan Allen <dan.j.allen@gmail.com>2021-09-15 00:05:55 -0600
commit68cd81f15941c4e7b373ee0cf1026a7a5997aa20 (patch)
tree13afa346aeb1553fff040d9f4226404bfca41d66 /features
parent48533baac43a15709f536c2aaa24ef5bbebeeb5b (diff)
add test to verify natural xref does not work if sectids is not set (meaning target has no id)
Diffstat (limited to 'features')
-rw-r--r--features/xref.feature27
1 files changed, 27 insertions, 0 deletions
diff --git a/features/xref.feature b/features/xref.feature
index e4767cc9..e0dc1dc9 100644
--- a/features/xref.feature
+++ b/features/xref.feature
@@ -901,6 +901,33 @@ Feature: Cross References
a< href='#Section One' [Section One]
"""
+ Scenario: Does not process a natural cross reference if sectids is not set
+ Given the AsciiDoc source
+ """
+ :!sectids:
+
+ == Section One
+
+ content
+
+ == Section Two
+
+ refer to <<Section One>>
+ """
+ When it is converted to html
+ Then the result should match the HTML structure
+ """
+ .sect1
+ h2
+ |Section One
+ .sectionbody: .paragraph: p content
+ .sect1
+ h2 Section Two
+ .sectionbody: .paragraph: p
+ |refer to
+ a< href='#Section One' [Section One]
+ """
+
Scenario: Parses text of xref macro as attributes if attribute signature found
Given the AsciiDoc source
"""