I noticed a really weird behavior related to
#+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 that
org-global-cyclefold/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 error
Unable to resolve link: "not a link"as it would fail to resolve unexisting links.
- and probably more...
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