Not able to display more than one images using image widget in a single tiddler

Is this a bug or an intended behaviour? I am not able to display more than one images using image widget in a single tiddler.

Paste the below code in www.tiddlywiki.com and see

<$image source="Blurry Lawn.jpg">

<$image source="Introduction Video Thumbnail.jpg">

You need to close the widget tag, i.e. /> instead of >

1 Like

Thank you @saqimtiaz for correcting that silly mistake from my part. I should have caught it before asking here.

While the /> syntax is inherited from HTML tags, aren’t TiddlyWiki widgets wikitext code that gets parsed by the TiddlyWiki core? Isn’t it fair to expect to see an error message on screen in such situations? Of course the most useful scenario would be having more verbose error messages in filter expressions, to prevent the common misuse of misc "pesky brackets"™

Per the Doc for the ImageWidget, any content within the widget is ignored.

By leaving the widget unclosed, TW considers everything after the first widget instance as “within the body” of that widget, until the end of the tiddler when any open widgets are automatically closed. So, everything after is ignored, not just additional images.

I agree that the fact that obvious mistakes are silently swallowed in cases like this isn’t great, but it seems completely in line with how HTML works, so I don’t think I blame TiddlyWiki for this one.

Perhaps there could be a case for a “strict mode” – but then we basically tried that with XHTML and apparently nobody liked it.