> # item1
> ** bullet1
> ** bullet2
> {{centeredTable{
> |t|a|b|
> |l|e|.|}}}
> # item2
>
> item2 is not numbered "2." but "1." presumably because the table stuff
> breaks the chain of numbers and bullets. Is there a way around this?
>

The TW syntax for bullets/numbers is processed using *line-mode*
logic, i.e., each item is one line, and always ends with a newline.
Unfortunately, TW table syntax uses line-mode logic as well, so that
each row of the table must also end with a newline.  As you noted,
this conflict between bullet and table syntax 'breaks' the numbering
sequence for any bullets that follow after the table.

Fortunately, however, there IS a workaround that allows you to mix the
two line-mode definitions the way you want... and, you are remarkably
close in your attempt!

All you need to do is to move the "{{centeredTable{" syntax onto the
same line as the bullet item it 'belongs' to, like this:

# item1
** bullet1
** bullet2{{centeredTable{
|t|a|b|
|l|e|.|
}}}
# item2

This works because the opening "{{classname{" syntax is on the same
line as the bullet definition, and thus the entire CSS-wrapped content
is processed and rendered BEFORE the newline that terminates the
bullet item.

As a result, the table is written *inside* the bullet item
"container", and the subsequent bullet item following the newline will
properly continue the numbering/indentation as desired.

Note: this same technique can be applied to the use of any line-mode
content within a bullet.  For example, a multi-line block quote with a
heading:

* bullet1
* bullet2{{foo{
!This is a heading
<<<
This content is in a block quote
and spans across several lines
with embedded newlines
<<<
}}}
* bullet3


enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

-- 
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