nested complex content in a list item

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

nested complex content in a list item

maydb
In https://asciidoctor.org/docs/user-manual/#list-continuation introduces using an open block to wrap complex content into a list.

```
* The header in AsciiDoc must start with a document title.
+
--
Here's an example of a document title:

----
= Document Title
----

NOTE: The header is optional.
--
```

Is there a way to using another open block in an open block? like

```
. nested open block
+
--

[quote]
____
Different identifier
____

something else

** python hello world
+
--
[example]
====
print("hello world")
====

[source, python]
----
print("hello world")
----
--

** javascript hello world
+
--

[source, javascript]
----
console.log("hello world")
----

[example]
====
console.log("hello world")
====
--
--

```

Example above actually doesn't work, is anything wrong with it?
Reply | Threaded
Open this post in threaded view
|

Re: nested complex content in a list item

mojavelinux
Administrator
maydb,

It's not currently possible to nest an open block inside an open block. There's a proposal to add that capability, but it has been deferred until it can be dealt with in the specification. See https://github.com/asciidoctor/asciidoctor/issues/1121

Best Regards,

-Dan

On Tue, Apr 21, 2020 at 6:56 AM maydb [via Asciidoctor :: Discussion] <[hidden email]> wrote:
In https://asciidoctor.org/docs/user-manual/#list-continuation introduces using an open block to wrap complex content into a list.

```
* The header in AsciiDoc must start with a document title.
+
--
Here's an example of a document title:

----
= Document Title
----

NOTE: The header is optional.
--
```

Is there a way to using another open block in an open block? like

```
. nested open block
+
--

[quote]
____
Different identifier
____

something else

** python hello world
+
--
[example]
====
print("hello world")
====

[source, python]
----
print("hello world")
----
--

** javascript hello world
+
--

[source, javascript]
----
console.log("hello world")
----

[example]
====
console.log("hello world")
====
--
--

```

Example above actually doesn't work, is anything wrong with it?



If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/nested-complex-content-in-a-list-item-tp7934.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux