details tag and wiki interpretation

74 views
Skip to first unread message

Jean-Pierre Rivière

unread,
Jun 28, 2021, 7:49:46 AM6/28/21
to TiddlyWiki
Hi!

I've got a perfectly all right tiddler content with something like an ordered list in wiki syntax.

Then I've decided to have that part within a html details markup. The problem is, the wiki syntax is no more producing a list.

for instane my wiki code would be

<details>
<summary>fubaring</summary>

# foo
# bar

</details>

see image

details-bug.png

Eric Shulman

unread,
Jun 28, 2021, 8:02:21 AM6/28/21
to TiddlyWiki
On Monday, June 28, 2021 at 4:49:46 AM UTC-7 jn.pierr...@gmail.com wrote:
I've got a perfectly all right tiddler content with something like an ordered list in wiki syntax.
Then I've decided to have that part within a html details markup. The problem is, the wiki syntax is no more producing a list.

The <details> element seems to be "eating" the newline that is required to precede the wikitext ordered list syntax.
To work around this, wrap your ordered list within a <div>...</div> element, like this:

<details>
<summary>fubaring</summary>
<div>

# foo
# bar
</div>
</details> 

Note that the newline preceding the first # item is necessary to ensure "block mode" parsing of the ordered list.

enjoy,
-e

David Gifford

unread,
Jun 28, 2021, 8:20:53 AM6/28/21
to TiddlyWiki
A span works just as well. Blessings.

Jean-Pierre Rivière

unread,
Jun 28, 2021, 9:10:20 AM6/28/21
to TiddlyWiki
Thank you Eric. And <p>...</p> does work too. Nice trick!

TW Tones

unread,
Jun 28, 2021, 10:22:28 AM6/28/21
to TiddlyWiki
Eric,

I noticed this today, and wonder if a behaviour has changed;

Never the less we can add a style to the div like this;

<details style="display: block;"><summary>Quick Access</summary>
<div style="column-count: 3;">

* one of many 
* two of many
...
</div>
</details>

Which helps save space
Tones
Reply all
Reply to author
Forward
0 new messages