the_wurfkreuz <the_wurfkr...@proton.me> writes: > For instance, i have a command that starts with an asterisk, and i want > to put it in a source block. However, doing so creates a heading. > Shouldn't the code block serve as a clear logical indicator that i don't > intend for that line to become a heading? > > Example: > > #+BEGIN_SRC > * hard nofile 20000 > #+END_SRC
Headline syntax has the highest priority, so that you do not accidentally invalidate a bunch of headings simply by having a #+begin_src deeply inside some text: ... #+begin_src (unclosed #+begin-src) ... * many headings here #+begin_src ...<everything up to the first unclosed #+begin_src would be considered a part of src block if what you suggest were the case> #+end_src You need to escape headings inside src blocks or literal examples like #+BEGIN_SRC ,* hard nofile 20000 #+END_SRC or simply by having an indentation #+BEGIN_SRC * hard nofile 20000 #+END_SRC See "12.6 Literal Examples" section of Org mode manual. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>