summaryrefslogtreecommitdiff
path: root/features/xref.feature
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2021-11-07 23:44:14 -0700
committerDan Allen <dan.j.allen@gmail.com>2021-11-08 00:44:24 -0700
commitf28e26bd586d08ae2c639f7881eba7d1dba2bc1a (patch)
tree58fee93b33ad87208be9ee33d208a0cfc9a845f1 /features/xref.feature
parentea1693989894b7a42041468104ee212a39ef3f54 (diff)
add test to verify title of formal paragraph is used as fallback reftext
Diffstat (limited to 'features/xref.feature')
-rw-r--r--features/xref.feature20
1 files changed, 20 insertions, 0 deletions
diff --git a/features/xref.feature b/features/xref.feature
index ec14ce41..0314ec50 100644
--- a/features/xref.feature
+++ b/features/xref.feature
@@ -552,6 +552,26 @@ Feature: Cross References
|to find a table of features.
"""
+ Scenario: Create a basic cross reference to a formal paragraph
+ Given the AsciiDoc source
+ """
+ <<terms>> apply.
+
+ .Terms and conditions
+ [#terms]
+ These are the terms and conditions.
+ """
+ When it is converted to html
+ Then the result should match the HTML structure
+ """
+ .paragraph: p
+ a> href='#terms' Terms and conditions
+ |apply.
+ #terms.paragraph
+ .title Terms and conditions
+ p These are the terms and conditions.
+ """
+
Scenario: Create a full cross reference to a formal image block
Given the AsciiDoc source
"""