>
> Recently, I've noticed that in some cases this works as expected, indeed.
> However, a while ago I've been trying trees of nested sliders and got
> different syntax bugs in each situation -- that's probably why I remembered
> that as "not supported". Unfortunately, I don't have a consistent series of
> tests, but quick tweaking brought me this markup which is not represented
> correctly:
>
> * +++[something]
> text
> * more text +++[more]
> details
> ===
> ===
>
The problem is with a conflict between bullet items and nested slider
syntax. Both are "line mode" syntax, which means they expect a terminating
newline. In your example, the outer nested slider works as expected, but
the inner one seems to be "broken" and the closing "===" syntax is
displayed as regular text instead of creating the inner slider.
A quick experiment confirms that it is this interaction of line-mode
formatting: if you start the inner nested slider on a separate line by
adding a newline after "more text", like this:
* +++[something]
text
* more text
+++[more]
details
===
===
then it parses correctly and the nesting works as intended. Of course,
this also changes the layout of the content, so it's not really a solution
for your specific use case... but it does illustrate where the problem
lies. Fortuately, there is a workaround that *does* solve the problem: add
a 'dummy' CSS wrapper around the inner bullet item AND content... like this:
* +++[something]
text
*{{dummy{more text +++[more]
details
===}}}
===
(note: you can use any CSS classname you want... "dummy" is just a
placeholder. In fact, the classname doesn't even need to be defined,
because the only purpose it to create the *wrapper* itself, rather than
applying any specific styles to the content.)
This technique also works as a general solution for using *multi-line*
content with bullet items, and can even work with *numbered* bullets:
-----------------------
# {{foo{This is the first line of a bullet item that has multi-line content
containing line-mode formats like headings:
!like this one
and blank lines:
and nested sliders
+++[click me]>
hello world
===
and even tables:
|this table|is indented to the|
|proper bullet item|level|
}}}
# This is the second bullet item
# etc.
-----------------------
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://TiddlyTools.github.com/fundraising.html#MakeADonation
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact
--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.