git.iko.soy/typeable/pandoc
on lowmem help sign in
31 lines 1.0 kB history raw
1Treat an image alone in its paragraph (but not a figure)
2as an independent image:
3```
4% pandoc -f native -t rst
5[Para [Image ("",["align-center"],[]) [Str "https://pandoc.org/diagram.jpg"] ("https://pandoc.org/diagram.jpg","")]]
6^D
7.. image:: https://pandoc.org/diagram.jpg
8 :alt: https://pandoc.org/diagram.jpg
9 :align: center
10```
12Here we just omit the center attribute as it's not valid:
13```
14% pandoc -f native -t rst
15[Para [Str "hi",Space,Image ("",["align-center"],[]) [Str "https://pandoc.org/diagram.jpg"] ("https://pandoc.org/diagram.jpg","")]]
16^D
17hi |https://pandoc.org/diagram.jpg|
19.. |https://pandoc.org/diagram.jpg| image:: https://pandoc.org/diagram.jpg
20```
22But we can use top, middle, or bottom alignment:
23```
24% pandoc -f native -t rst
25[Para [Str "hi",Space,Image ("",["align-top"],[]) [Str "https://pandoc.org/diagram.jpg"] ("https://pandoc.org/diagram.jpg","")]]
26^D
27hi |https://pandoc.org/diagram.jpg|
29.. |https://pandoc.org/diagram.jpg| image:: https://pandoc.org/diagram.jpg
30 :align: top
31```