On 30/09/2023 12:06, Tom Alexander wrote:
The documentation for lesser blocks[1] states:
Lines beginning with an asterisk or `#+` must be quoted by a comma (`,*`,
`,#+`).
However, the following test document parses as a lesser block despite
containing a line starting with an unescaped #+:
```
#+CATEGORY: foo
#+begin_src text
#+CATEGORY: bar
#+end_src
```
You have to quote #+end_src inside source code blocks or #+end_example
in the case of #+begin_example block
#+begin_example
,#+end_example
#+end_example