summaryrefslogtreecommitdiff
path: root/test/docbook-xref.native
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2023-03-21 20:47:45 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2023-03-22 08:32:48 -0700
commit821cf3df4df695d4bb8f8659a85993033939e860 (patch)
treea6c4165e2f7113252f5255f5adbbe28e408a2c85 /test/docbook-xref.native
parent440b438158e61b3452a9622112061430e457931b (diff)
DocBook reader: handle "book" for xref references
This also adds a test xref to book and part. See also 4ea0508e6 / #8712.
Diffstat (limited to 'test/docbook-xref.native')
-rw-r--r--test/docbook-xref.native55
1 files changed, 52 insertions, 3 deletions
diff --git a/test/docbook-xref.native b/test/docbook-xref.native
index 8025f698b..dedd7bfc5 100644
--- a/test/docbook-xref.native
+++ b/test/docbook-xref.native
@@ -14,7 +14,7 @@ Pandoc
]
}
[ Header
- 1
+ 2
( "ch01" , [] , [] )
[ Str "XRef" , Space , Str "Samples" ]
, Para
@@ -195,21 +195,70 @@ Pandoc
, Str "."
]
]
+ , [ Para
+ [ Str "A"
+ , Space
+ , Str "link"
+ , Space
+ , Str "to"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Str "part"
+ , Space
+ , Str "element:"
+ , Space
+ , Link
+ ( "" , [] , [] )
+ [ Str "Later" , Space , Str "Part" ]
+ ( "#part01" , "" )
+ , Str "."
+ ]
+ ]
+ , [ Para
+ [ Str "A"
+ , Space
+ , Str "link"
+ , Space
+ , Str "to"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Str "book"
+ , Space
+ , Str "element:"
+ , Space
+ , Link
+ ( "" , [] , [] )
+ [ Str "An"
+ , Space
+ , Str "Example"
+ , Space
+ , Str "Book"
+ ]
+ ( "#book01" , "" )
+ , Str "."
+ ]
+ ]
]
, Header
- 1
+ 2
( "ch02" , [] , [] )
[ Str "The" , Space , Str "Second" , Space , Str "Chapter" ]
, Para
[ Str "Some" , Space , Str "content" , Space , Str "here" ]
, Header
1
+ ( "part01" , [] , [] )
+ [ Str "Later" , Space , Str "Part" ]
+ , Header
+ 2
( "ch03" , [] , [] )
[ Str "The" , Space , Str "Third" , Space , Str "Chapter" ]
, Para
[ Str "Some" , Space , Str "content" , Space , Str "here" ]
, Header
- 1
+ 2
( "ch04" , [] , [ ( "titleabbrev" , "Chapter 4" ) ] )
[ Str "The" , Space , Str "Fourth" , Space , Str "Chapter" ]
, Para