go-org-orgwiki/org/testdata/captions.pretty_org
Niklas Fasching ade2a1c875 Improve tests: Add pretty_org fixtures to allow testing pretty printing
Until now we expected the .org file to print back to itself - we can't do that
when the input is not pretty printed already - with the introduction of blocks
with unindented content that will be the case.
2018-12-18 23:54:04 +01:00

16 lines
508 B
Text

Anything can be captioned. Also captions are not real, correct captions but just a paragraph below the element (bothe wrapped into a div)
#+CAPTION: captioned soure block
#+BEGIN_SRC sh
echo "i have a caption!"
#+END_SRC
#+CAPTION: captioned link (image in this case)
[[https://placekitten.com/200/200#.png]]
note that the whole paragraph is captioned, so a linebreak is needed for images to caption correctly
#+CAPTION: captioned link (image in this case)
[[https://placekitten.com/200/200#.png]]
see?