From: "Galen Menzel" <galen.menzel@utexas.edu>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Source blocks confused by Org syntax
Date: Thu, 14 Feb 2019 12:14:36 -0800 [thread overview]
Message-ID: <713BB3F4-0E39-4C67-B76E-18826CE39D3F@utexas.edu> (raw)
[-- Attachment #1: Type: text/plain, Size: 1099 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 2105 bytes --]
next reply other threads:[~2019-02-14 20:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-14 20:14 Galen Menzel [this message]
2019-02-14 20:37 ` Source blocks confused by Org syntax John Kitchin
2019-02-14 20:55 ` Galen Menzel
2019-02-14 20:57 ` John Kitchin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=713BB3F4-0E39-4C67-B76E-18826CE39D3F@utexas.edu \
--to=galen.menzel@utexas.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.