diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-12-27 13:33:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-27 13:33:00 -0700 |
commit | acfa846aab4ed2c5acb00c9d4eab6b80c13114fd (patch) | |
tree | e23ac30090fe6016b906e421edcc9790956a6471 /test | |
parent | 2e8722da6c732d2153ea055bd0961b4233f97c36 (diff) | |
parent | 9b54b9461221f1bb34b8d3e6ffa0f43d5a9e6352 (diff) | |
download | pandoc-acfa846aab4ed2c5acb00c9d4eab6b80c13114fd.tar.gz |
Merge pull request #4184 from mb21/html-reader-figcaption
HTML Reader: be more forgiving about figcaption
Diffstat (limited to 'test')
-rw-r--r-- | test/command/4183.md | 32 |
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:")]] +``` |