From 68cd81f15941c4e7b373ee0cf1026a7a5997aa20 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 14 Sep 2021 23:55:40 -0600 Subject: add test to verify natural xref does not work if sectids is not set (meaning target has no id) --- features/xref.feature | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'features') 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 <
> + """ + 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 """ -- cgit v1.2.3