* Can special blocks be nested?
@ 2014-11-27 7:52 Marcin Borkowski
2014-11-27 9:24 ` Rasmus
2014-11-28 22:16 ` Nicolas Goaziou
0 siblings, 2 replies; 4+ messages in thread
From: Marcin Borkowski @ 2014-11-27 7:52 UTC (permalink / raw)
To: Org-Mode mailing list
Hello list,
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?
TIA,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can special blocks be nested?
2014-11-27 7:52 Can special blocks be nested? Marcin Borkowski
@ 2014-11-27 9:24 ` Rasmus
2014-11-28 22:16 ` Nicolas Goaziou
1 sibling, 0 replies; 4+ messages in thread
From: Rasmus @ 2014-11-27 9:24 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can special blocks be nested?
2014-11-27 7:52 Can special blocks be nested? Marcin Borkowski
2014-11-27 9:24 ` Rasmus
@ 2014-11-28 22:16 ` Nicolas Goaziou
2014-11-28 22:56 ` Marcin Borkowski
1 sibling, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2014-11-28 22:16 UTC (permalink / raw)
To: Marcin Borkowski; +Cc: Org-Mode mailing list
Hello,
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?
It is legal. You can nest special blocks, as long as they don't have the
same type.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-11-28 22:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-27 7:52 Can special blocks be nested? Marcin Borkowski
2014-11-27 9:24 ` Rasmus
2014-11-28 22:16 ` Nicolas Goaziou
2014-11-28 22:56 ` Marcin Borkowski
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.