diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2020-10-31 03:46:18 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-31 03:46:18 -0600 |
| commit | 513f292c750fe66f39d50f566786e74df8a0966e (patch) | |
| tree | ff4d0c70633d3ea0702d79b2aceeb822d4108e4e /features | |
| parent | 243cd6a518b4ee894a7ccfc581ae46df18b51a4b (diff) | |
resolves #3745 always use title as xreftext if target block has an empty caption (PR #3806)
Diffstat (limited to 'features')
| -rw-r--r-- | features/xref.feature | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/features/xref.feature b/features/xref.feature index 5ddcf308..e4767cc9 100644 --- a/features/xref.feature +++ b/features/xref.feature @@ -630,6 +630,32 @@ Feature: Cross References .title Diagram 2. Managing Inventory """ + Scenario: Create a full cross reference to a block with an empty caption + Given the AsciiDoc source + """ + :xrefstyle: full + + See <<ex1>>. + + .Title + [#ex1,caption=] + ==== + content + ==== + """ + When it is converted to html + Then the result should match the HTML structure + """ + .paragraph: p + |See + a< href='#ex1' Title + |. + #ex1.exampleblock + .title Title + .content: .paragraph: p + |content + """ + Scenario: Create a short cross reference to a block with an explicit caption Given the AsciiDoc source """ @@ -662,6 +688,32 @@ Feature: Cross References .title Diagram 2. Managing Inventory """ + Scenario: Create a short cross reference to a block with an empty caption + Given the AsciiDoc source + """ + :xrefstyle: short + + See <<ex1>>. + + .Title + [#ex1,caption=] + ==== + content + ==== + """ + When it is converted to html + Then the result should match the HTML structure + """ + .paragraph: p + |See + a< href='#ex1' Title + |. + #ex1.exampleblock + .title Title + .content: .paragraph: p + |content + """ + Scenario: Create a basic cross reference to an unnumbered formal block Given the AsciiDoc source """ |
