I noticed a really weird behavior related to #+begin_xxx
/#+end_xxx
block. It turns out that contents inside those blocks are parsed as org-mode markup. That is, inside a block:
*
at the beginning of a line is considered as a heading. A direct impact is thatorg-global-cycle
fold/unfold incorrectly sectioning.[[not a link]]
is considered as an org-mode link. Export to pdf (org-latex-export-to-pdf
) the org file will raise the errorUnable to resolve link: "not a link"
as it would fail to resolve unexisting links.- and probably more...
MWE
emacs-version = 26.3
org-version = 9.2.6
* H1
** H2
#+begin_example
* Should not be rendered as a heading!
[[Should be avoided when exporting]]
#+end_example
#+begin_src c
* sp = "Should not be rendered as a heading!"
// [[Should be avoided when exporting]]
#+end_src