emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: note meta <metanote.team@gmail.com>
To: Vladimir Nikishkin <lockywolf@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] src and example blocks do not properly escape headings [9.6.6 (release_9.6.6 @ /usr/share/emacs/30.0.50/lisp/org/)]
Date: Wed, 13 Sep 2023 12:15:50 +0800	[thread overview]
Message-ID: <CAMCUW+t6wEGNJ=m2z9ZDKamzzadsmbHBYKWgqVvZKcCeYJtThw@mail.gmail.com> (raw)
In-Reply-To: <87r0n24wmm.fsf@laptop.lockywolf.net>

[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]

hi,

I think you might use a comma.

See here https://orgmode.org/worg/org-syntax.html#Blocks

Lines beginning with an asterisk or #+ must be quoted by a comma (,*, ,#+).

Zhen


Vladimir Nikishkin <lockywolf@gmail.com> 于2023年9月13日周三 11:59写道:

> Hello, everyone,
>
> My MWE is the following:
>
> ```
> Hello, preamble.
>
> * Heading one
>
> body one
>
> #+begin_src org
> * heading 2
> #+end_src
>
> #+begin_example
> * heading 3
> #+end_example
>
> #+begin_verbatim
> * heading 4
> #+end_verbatim
>
>
> ```
>
> Clearly, "heading 2", "heading 3", and of course, "heading 4" should not
> be considered headings of the original document. However, here they are
> treated as normal headings, in particular, they are not just breaking
> the folding logic, they are even breaking the detection of begin_*/end_*
> blocks.
>
> I have a feeling that this was not the case in the past...?
>
> Emacs  : GNU Emacs 30.0.50 (build 1, x86_64-slackware-linux-gnu, GTK+
> Version 3.24.31, cairo version 1.16.0)
>  of 2023-07-31
> Package: Org mode version 9.6.6 (release_9.6.6 @
> /usr/share/emacs/30.0.50/lisp/org/)
> --
> Your sincerely,
> Vladimir Nikishkin (MiEr, lockywolf)
> (Laptop)
>
>

[-- Attachment #2: Type: text/html, Size: 1753 bytes --]

  reply	other threads:[~2023-09-13  4:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-13  2:43 [BUG] src and example blocks do not properly escape headings [9.6.6 (release_9.6.6 @ /usr/share/emacs/30.0.50/lisp/org/)] Vladimir Nikishkin
2023-09-13  4:15 ` note meta [this message]
2023-09-13  8:01   ` Ihor Radchenko

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMCUW+t6wEGNJ=m2z9ZDKamzzadsmbHBYKWgqVvZKcCeYJtThw@mail.gmail.com' \
    --to=metanote.team@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=lockywolf@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).