List-nesting problem

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

List-nesting problem

Esben
This post was updated on .
Hi

I am writing a mindmap->asciidoctor converter, using Freeplane as the mindmap-editor.

It will be very easy, and very tempting, for my users (ie. me :) ) to create a structure like this:

Definition-list 1
    Text in def 1
    Text in def 1
    Definition-list 2
        text in def 2
        Definition-list 3
            Text in def 3
        Text in def 2
    Text in def 1

Text not in a list


But I can't seem to realise this in Asciidoctor?

I've tried breaking the list with a comment, I've tried enclosing in "--" blocks - no matter what I try, Text in def 1/2 ends up either at the third level or entirely outside the list

Is this not possible to do in Asciidoctor?
Reply | Threaded
Open this post in threaded view
|

Re: List-nesting problem

mojavelinux
Administrator
It is possible. It would be better if you showed the syntax you are trying to use. Then I (or someone else) can help you get it working.

Best Regards,

-Dan

On Thu, Dec 3, 2020 at 4:28 AM Esben [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi

I am writing a mindmap->asciidoctor converter, using Freeplane as the mindmap-editor.

It will be very easy, and very tempting, for my users (ie. me :) ) to create a structure like this:

Definition-list 1
    Text in def 1
    Text in def 1
    Definition-list 2
        text in def 2
        Definition-list 3
            Text in def 3
        Text in def 2
    Text in def 1

Text not in a list

But I can't seem to realise this in Asciidoctor?

I've tried breaking the list with a comment, I've tried enclosing in "--" blocks - no matter what I try, Text in def 1/2 ends up either at the third level or entirely outside the list

Is this not possible to do in Asciidoctor?


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/List-nesting-problem-tp8374.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: List-nesting problem

Esben
Of course - here is one thing I tried:

Definition-list 1 ::
+
Text in def 1
+
Text in def 1
+
Definition-list 2 :::
+
text in def 2
+
Definition-list 3 ::::
+
Text in def 3
+

Text in def 2

// -  
Text in def 1

I've tried many combinations - I've also tried variations of:

Definition-list 1 ::
+
Text in def 1
+
Text in def 1
+
Definition-list 2 :::
+
text in def 2
+
Definition-list 3 ::::
+
--
Text in def 3
--
+
Text in def 2

+
Text in def 1

I could post more attempts, but I think that this should give you the gist of it?

Reply | Threaded
Open this post in threaded view
|

Re: List-nesting problem

Esben
This post was updated on .
ok - I found out how to do it by ahem .... reading the docs  

The trick is that every empty line after a the last element in the list, demotes next element one level.

(the color-roles are only there to make the nesting clear, they can be removed)

[.red]
Definition-list 1 ::
+
Text in def 1
+
Text in def 1
+
[.blue]
Definition-list 2 :::
+
text in def 2
+
[.green]
Definition-list 3 ::::
+
Text in def 3


+
Text in def 2

+
Text in def 1

Text not in a list