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.
This commit is contained in:
parent
c26d39284c
commit
ade2a1c875
14 changed files with 356 additions and 8 deletions
16
org/testdata/captions.pretty_org
vendored
Normal file
16
org/testdata/captions.pretty_org
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
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?
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue