Putting the discussion of nested blocks to the side, the structure you
should really use in this case is a description list, perhaps with a
special style name or reuse "qanda".

[qanda]
question goes here::

answer goes here

You can make any HTML output you want by customizing the templates (in
AsciiDoc Python, change html5.confg).

-Dan

On Tue, Jan 20, 2015 at 5:02 AM, Fernando Basso <[email protected]>
wrote:

> I need to do something like this:
>
>     [role='exercise']
>     --
>     [role='question']
>     --
>     question goes here.
>     --
>
>     [role='answer']
>     --
>     answer goes here.
>     --
>     --
>
>     I wanted the output to be something like
>
>     <div class='exercise'>
>         <div class='question'>Question goes here.</div>
>         <div class='answer'>Answer goes here.</div>
>     </div>
>
> Is something like that possible (I'm only concerned with html5 backend)?
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Dan Allen | http://google.com/profiles/dan.j.allen

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to