This seems to be a symptom of the same issue as
http://lists.gnu.org/archive/html/emacs-orgmode/2016-10/msg00175.html

A workaround is to put the contents of the #+BEGIN_EXPORT ... block into
a separate .org file (include.org), and #+INCLUDE it in the main document

#+INCLUDE: "include.org" export <backend>

where "include.org":
* Heading
other text

On 03/11/2016 11:47 AM, Lixin Chin wrote:
As per the subject, when a heading line is included within a
`#+BEGIN_EXPORT backend ... #+END_EXPORT' block, it breaks the parsing
of the block, which is instead split into multiple `paragraph' elements.

See the attached example (test.org), and associate exports (test.tex)
and (test.html).

Tested with `emacs -Q -l minimal-org.el', with the org package installed
from http://orgmode.org/elpa/, org-20161102.


Reply via email to