mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
Merge pull request #4184 from mb21/html-reader-figcaption
HTML Reader: be more forgiving about figcaption
This commit is contained in:
@@ -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:")]]
|
||||
```
|
||||
Reference in New Issue
Block a user