emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Can special blocks be nested?
Date: Thu, 27 Nov 2014 10:24:06 +0100	[thread overview]
Message-ID: <878uixhu89.fsf@gmx.us> (raw)
In-Reply-To: 87h9xljd1m.fsf@wmi.amu.edu.pl

Hi,

I'm not an expert, so what I write could be wrong.

Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:

> this seems to work when exporting:
>
> #+BEGIN_BLOCK1
> Lorem ipsum
> #+BEGIN_BLOCK2
> dolor sit amet
> #+END_BLOCK2
>
> #+END_BLOCK1
>
> but font locking does not (the inner block begin/end markers are not
> colorized properly).
>
> Is this construction legal?  May I depend on it being exported
> correctly, or is it just an undefined behavior or something like that?

The one you quote is fine.  This one is not:

#+BEGIN_BLOCK1
Lorem ipsum
#+BEGIN_BLOCK1
dolor sit amet
#+END_BLOCK1
#+END_BLOCK1

See the Org syntax for further details.  In particular:

> * Greater Elements
> [...] Unless specified otherwise, greater elements can contain directly any other element or greater element excepted:
>     - elements of their own type, 
>     - [...]

http://orgmode.org/worg/dev/org-syntax.html

—Rasmus

-- 
C is for Cookie

  reply	other threads:[~2014-11-27  9:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-27  7:52 Can special blocks be nested? Marcin Borkowski
2014-11-27  9:24 ` Rasmus [this message]
2014-11-28 22:16 ` Nicolas Goaziou
2014-11-28 22:56   ` Marcin Borkowski

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=878uixhu89.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --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 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).