1Treat an image alone in its paragraph (but not a figure)
2as an independent image:
4% pandoc -f native -t rst
5[Para [Image ("",["align-center"],[]) [Str "https://pandoc.org/diagram.jpg"] ("https://pandoc.org/diagram.jpg","")]]
7.. image:: https://pandoc.org/diagram.jpg
8 :alt: https://pandoc.org/diagram.jpg
12Here we just omit the center attribute as it's not valid:
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","")]]
17hi |https://pandoc.org/diagram.jpg|
19.. |https://pandoc.org/diagram.jpg| image:: https://pandoc.org/diagram.jpg
22But we can use top, middle, or bottom alignment:
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","")]]
27hi |https://pandoc.org/diagram.jpg|
29.. |https://pandoc.org/diagram.jpg| image:: https://pandoc.org/diagram.jpg
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list