On Jun 7, 6:36 am, Sub <[email protected]> wrote:
> Again, not the solution of my problem... I don't want to style it, I
> want to produce that output!

You *can* get block-level elements (such as PRE) to nest inside a
bullet list item.  The trick is to contain the entire bullet item in a
CSS-classwrapper (i.e. {{classname{...}}}), like this:

* List item 1
* {{block{List item 2 - Code:
{{{
Foo bar
}}}
}}}
* List item 3

Because the "* {{block{" wrapper starts on the same line as the
bullet, the linebreak at the end of that line is not treated as the
end of the bullet item and, TW parses the entire CSS block as part of
the one bullet item.

The same technique can be applied to other block-level TW syntax, such
as tables:

* item 1
* {{block{
item 2 with table:
|foo|bar|baz|
|mumble|frotz|gronk|
}}}
* item 3

or even just simple paragraph breaks within a bullet item:

* item 1
* {{block{
this is the first paragraph of item 2

this is second paragraph of item 2
}}}
* item 3

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
----------
Was this answer useful? If so, please help support TiddlyTools:

   TiddlyTools direct contributions: (paypal)
      http://www.TiddlyTools.com/#Donate
   UnaMesa tax-deductible contributions:
      http://about.unamesa.org/Participate (paypal)
   TiddlyWiki consulting:
      http://www.TiddlyTools.com/#ELSDesignStudios
      http://www.TiddlyTools.com/#Contact

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to