[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Can special blocks be nested?
From: |
Rasmus |
Subject: |
Re: [O] Can special blocks be nested? |
Date: |
Thu, 27 Nov 2014 10:24:06 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Hi,
I'm not an expert, so what I write could be wrong.
Marcin Borkowski <address@hidden> 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