1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
# Writer
HTML5 figure with caption and content.
```
% pandoc -f native -t html5
[Figure ("fig-id",[],[]) (Caption Nothing [Plain [Str "caption"]]) [Para [Str "content"]]]
^D
<figure id="fig-id">
<p>content</p>
<figcaption>caption</figcaption>
</figure>
```
HTML5 figure with NO caption and content.
```
% pandoc -f native -t html5
[Figure ("fig-id",[],[]) (Caption Nothing []) [Para [Str "content"]]]
^D
<figure id="fig-id">
<p>content</p>
</figure>
```
HTML4 figure with caption and content.
```
% pandoc -f native -t html4
[Figure ("fig-id",[],[]) (Caption Nothing [Plain [Str "caption"]]) [Para [Str "content"]]]
^D
<div class="float" id="fig-id">
<p>content</p>
<div class="figcaption">caption</div>
</div>
```
HTML4 figure with NO caption and content.
```
% pandoc -f native -t html4
[Figure ("fig-id",[],[]) (Caption Nothing []) [Para [Str "content"]]]
^D
<div class="float" id="fig-id">
<p>content</p>
</div>
```
# Reader
Figure with caption and multiple elements.
```
% pandoc -f html -t native
<figure class="important">
<img src="../media/rId25.jpg" />
<ul> <li> ITEM </li> </ul>
<figcaption> CAP2 </figcaption>
</figure>
^D
[ Figure
( "" , [ "important" ] , [] )
(Caption Nothing [ Plain [ Str "CAP2" ] ])
[ Plain
[ Image ( "" , [] , [] ) [] ( "../media/rId25.jpg" , "" ) ]
, BulletList [ [ Plain [ Str "ITEM" ] ] ]
]
]
```
Figure without caption.
```
% pandoc -f html -t native
<figure class="important">
<img src="../media/rId25.jpg" />
<ul> <li> ITEM </li> </ul>
</figure>
^D
[ Figure
( "" , [ "important" ] , [] )
(Caption Nothing [])
[ Plain
[ Image ( "" , [] , [] ) [] ( "../media/rId25.jpg" , "" ) ]
, BulletList [ [ Plain [ Str "ITEM" ] ] ]
]
]
```
|