Laurent,

I can't help you on the JavaScript but have you tried using recursion in 
WikiText as do the core toc macros ?
$:/core/macros/toc

TiddlyWiki via its wiki text/macros is really good at generating nested 
lists, it is also trivial I believe to pass the list items to a javascript 
macro so if you really must use Javascript consider a hybrid approach.

Regards
Tony


On Tuesday, September 4, 2018 at 10:34:26 AM UTC+10, Laurent Bonet wrote:
>
> Hello all,
>
> Trying to write a "recursive" javascript macro to generate nested list.
>
> Anyone can help.
>
> Do I have to more complex things (plugin?) to achieve such objective.
>
> Thx in advance for your help.
>
> Rgds
>
> Laurent 
>
> [image: Capture d’écran 2018-09-04 à 02.22.17.png]
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1f3a6b22-ed0f-45cd-876e-fd15fc291574%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to