On Thu, Jan 26, 2012 at 9:06 AM, Florian Kaufmann <[email protected]> wrote: > When interleaving a quote whit another quote > > lorem *ipsum _dolor* sit_ amet > > Or a quote with an inline macro > > In Python ** is the exponent operator image:./note.png[alt=exponent > operator **] > > asciidoc emits neither warnings nor errors. The generated xhtml is > invalid, because it contains xhtmls which are also interleaved, which > is not valid xhtml. Elements only can be nested. > > I am wondering what your ideas are > > - It is not a bug. The user has to know about the order and rules of > processing and has to use escapes when needed
The user has to have read the manual which states that quotes cannot overlap and that different quotes can nest. They don't need to know backend rules in this case. > > - It is a bug in the sense that asciidoc should emitt an error, i.e. > by requirements not allow interleaved constructs/elements Perhaps but detecting overlap would be difficult since one set of quotes is processed before the other, thus chopping the other set in halves and simply making it a legal single character. Thats why overlapping quotes don't work, they don't get detected, not because the backend markup doesn't like them. > > - It is a bug in the sense that in the output additional xhtml must be > created so in xhtml, all elements are nested. No, see FAQ http://www.methods.co.nz/asciidoc/faq.html#_asciidoc_sometimes_generates_invalid_output_markup_why Cheers Lex > > I am using asciidoc 8.6.4. > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/asciidoc?hl=en. > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
