summaryrefslogtreecommitdiff
path: root/test/docbook-xref.native
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2023-03-05 12:23:32 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2023-03-05 12:23:32 -0800
commit2dd645e26e57cfc7944f68276c7e01de989fef20 (patch)
treece069ecc98613b87977672db21545ceba09dd7fb /test/docbook-xref.native
parentc5f791b737f6dff738119b9ea40c67028089665f (diff)
DocBook reader: parse `figure` as a Figure element in the AST.
Closes #8668.
Diffstat (limited to 'test/docbook-xref.native')
-rw-r--r--test/docbook-xref.native41
1 files changed, 30 insertions, 11 deletions
diff --git a/test/docbook-xref.native b/test/docbook-xref.native
index 9487224ba..8025f698b 100644
--- a/test/docbook-xref.native
+++ b/test/docbook-xref.native
@@ -228,18 +228,37 @@ Pandoc
, Plain [ Str "int1" ]
, Plain [ Str "int" ]
, Plain [ Str "int2" ]
- , Para
- [ Image
- ( "fig01" , [] , [] )
- [ Str "The"
- , Space
- , Str "Pythagorean"
- , Space
- , Str "Theorem"
- , Space
- , Str "Illustrated"
+ , Figure
+ ( "fig01" , [] , [] )
+ (Caption
+ Nothing
+ [ Plain
+ [ Str "The"
+ , Space
+ , Str "Pythagorean"
+ , Space
+ , Str "Theorem"
+ , Space
+ , Str "Illustrated"
+ ]
+ ])
+ [ Plain
+ [ Image
+ ( "" , [] , [] )
+ [ Str "An"
+ , Space
+ , Str "illustration"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "Pythagorean"
+ , Space
+ , Str "Theorem"
+ ]
+ ( "figures/pythag.png" , "" )
]
- ( "figures/pythag.png" , "fig:" )
]
, Table
( "" , [] , [] )