I would like to include source code snippets as part of list items, like so
1. I tried this as root
#+begin_src shell
rm -rf /
#+end_src
2. Now the computer won't boot.
but org-meta-return after the source doesn’t give the next number, it starts a new headline. How can I include code as part of the list and not have it terminate the list? (The same question applies to #+begin_quote/#+end_quote.)
Considering your version of Org-Mode I would recommend updating to a newer version,
7.4was released 13 months ago.If I’m reading your release string properly you are currently using commit
56399that was submitted on[2011-02-27 Sun 11:01]. Since then there have been 1983 commits and the version number has been pushed up to7.8.03(currently shipping with7.7I believe).For information on how to update to the newest version please see:
Download and install Org-Mode
How to keep up to date
You should also be able to update by using
apt-get install org-modein Debian and Ubuntu. Ubuntu 11.10 has7.6(which may or may not have the desired change, you’d have to see) in it’s repository and 12.04 has7.8.02. If you’re running Debian it looks like Sid has 7.8.02 in it as well.