I dug a little deeper and found the answer: I need to indent the source block.
Alan Schmitt <alan.schm...@polytechnique.org> writes: > Hello, > > I'm writing a series of exercises where I need to write some code in the > middle of an enumeration. Unfortunately the following does not work: > > 1. This is how one write an empty list > > #+BEGIN_SRC emacs-lisp > nil > #+END_SRC > > 2. And this is a second item > > When I export this, the source block is interpreted as closing the > enumerate environment. This works: --8<---------------cut here---------------start------------->8--- 1. This is how one write an empty list #+BEGIN_SRC emacs-lisp nil #+END_SRC 2. And this is a second item --8<---------------cut here---------------end--------------->8--- Sorry for the noise, Alan