aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormb21 <mb21@users.noreply.github.com>2017-12-21 09:56:14 +0100
committermb21 <mb21@users.noreply.github.com>2017-12-23 09:42:04 +0100
commit9b54b9461221f1bb34b8d3e6ffa0f43d5a9e6352 (patch)
tree5bab188e9fc91ee199831a169b4dc6e2e8e8fac6 /test
parente3c1449ae6c238f7195981f39bb505da0c69bc0c (diff)
downloadpandoc-9b54b9461221f1bb34b8d3e6ffa0f43d5a9e6352.tar.gz
HTML Reader: be more forgiving about figcaption
fixes #4183
Diffstat (limited to 'test')
-rw-r--r--test/command/4183.md32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/command/4183.md b/test/command/4183.md
new file mode 100644
index 000000000..c18320882
--- /dev/null
+++ b/test/command/4183.md
@@ -0,0 +1,32 @@
+```
+% pandoc -f html -t native
+<figure>
+ <img src="foo" alt="bar">
+</figure>
+^D
+[Para [Image ("",[],[]) [] ("foo","fig:")]]
+```
+
+```
+% pandoc -f html -t native
+<figure>
+ <img src="foo" alt="bar">
+ <figcaption>
+ <div>
+ baz
+ </div>
+ </figcaption>
+</figure>
+^D
+[Para [Image ("",[],[]) [Str "baz"] ("foo","fig:")]]
+```
+
+```
+% pandoc -f html -t native
+<figure>
+ <img src="foo">
+ <figcaption><p><em>baz</em></p></figcaption>
+</figure>
+^D
+[Para [Image ("",[],[]) [Emph [Str "baz"]] ("foo","fig:")]]
+```