emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Source blocks confused by Org syntax


From: Galen Menzel
Subject: [O] Source blocks confused by Org syntax
Date: Thu, 14 Feb 2019 12:14:36 -0800

Hi all,

I’m finding that org source blocks are getting confused if their text contains org syntax. For example, in the text below, org considers all the lines beginning with asterisks in the text below to be org headers, and will fold them accordingly:

#+BEGIN_SRC text
This source block folds just fine
#+END_SRC

#+BEGIN_SRC text
This source block doesn't fold properly because it contains an org headline
* See?
#+END_SRC

#+BEGIN_SRC emacs-lisp
(surely this problem doesnt apply in emacs-lisp mode)
* Does it?
** Sadly it does
 #+END_SRC

 #+BEGIN_QUOTE
 The problem also pertains to quotes
* as you can see
#+END_QUOTE

#+BEGIN_EXAMPLE
And examples are no exception
* As you can see again
#+END_EXAMPLE

Since all these “headlines” occur inside source, quote, or example blocks, they shouldn’t be considered org headlines. In addition, the blocks that contain lines beginning with asterisks won’t fold properly.

I’m seeing this behavior in both 9.2.1 and 9.1.9. Are others seeing this? Please let me know if I can provide any further information!

Best,

Galen


reply via email to

[Prev in Thread] Current Thread [Next in Thread]