org-rw/tests/04-code.org
Sergio Martínez Portela a5bfeadfeb (In progress) Add support for SRC code blocks.
- Add tests for blocks.
- Add Regexps.
- Correctly handle Headlines with split contents.
2020-12-04 00:04:56 +01:00

35 lines
586 B
Org Mode

#+TITLE: 04-Code
#+DESCRIPTION: Simple org file
#+TODO: TODO(t) PAUSED(p) | DONE(d)
* First Item
:PROPERTIES:
:ID: 04-code-first-item-id
:CREATED: [2020-01-01 Wed 01:01]
:END:
#+BEGIN_SRC shell
echo "This is a test"
exit 0 # Exit successfully
#+END_SRC
#+RESULTS:
: This is a test
* Second item
:PROPERTIES:
:ID: 04-code-second-item-id
:CREATED: [2020-01-01 Wed 01:01]
:END:
#+BEGIN_SRC shell :results drawer
echo "This is another test"
exit 0 # Comment
#+END_SRC
#+RESULTS:
:results:
This is another test
:end: