That doesn’t match my idea of the semantics of a subsection. Instead it seems to me like a sort of named block. Have you tried other approaches such as a description list?
If you are adventurous you could write a block processor that puts the contents of the block into a document and returns the document to become a block in the enclosing section. I discovered that the js ainclude block macro I’m developing does this (accidentally :-). I can give you some advice if you want to take this approach. This is “using the API’ as Dan said would work.
David Jencks
On Jun 22, 2020, at 2:27 PM, siddjain [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
The use case of this is when I want to give an exercise in a subsection, then I need to exit out to parent section.