Hi,

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

Marcin Borkowski <mb...@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 via email to