summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/docbook-reader.native36
-rw-r--r--test/docbook-xref.native41
2 files changed, 61 insertions, 16 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"
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
( "" , [] , [] )