summaryrefslogtreecommitdiff
path: root/test/docbook-reader.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-reader.native
parentc5f791b737f6dff738119b9ea40c67028089665f (diff)
DocBook reader: parse `figure` as a Figure element in the AST.
Closes #8668.
Diffstat (limited to 'test/docbook-reader.native')
-rw-r--r--test/docbook-reader.native36
1 files changed, 31 insertions, 5 deletions
diff --git a/test/docbook-reader.native b/test/docbook-reader.native
index 87ccdfac0..8bb313691 100644
--- a/test/docbook-reader.native
+++ b/test/docbook-reader.native
@@ -1565,11 +1565,37 @@ Pandoc
, Space
, Str "(1902):"
]
- , Para
- [ Image
- ( "" , [] , [] )
- [ Str "lalune" , Space , Str "fig" , Space , Str "caption" ]
- ( "lalune.jpg" , "fig:" )
+ , Figure
+ ( "" , [] , [] )
+ (Caption
+ Nothing
+ [ Plain
+ [ Str "lalune"
+ , Space
+ , Str "fig"
+ , Space
+ , Str "caption"
+ ]
+ ])
+ [ Plain
+ [ Image
+ ( "" , [] , [] )
+ [ Str "lalune"
+ , Space
+ , Str "alt"
+ , Space
+ , Str "text"
+ , Space
+ , Str "shadowed"
+ , Space
+ , Str "by"
+ , Space
+ , Str "fig"
+ , Space
+ , Str "caption"
+ ]
+ ( "lalune.jpg" , "" )
+ ]
]
, Para
[ Str "Here"