Well, I think you already guessed from the title what this is about. I wrote this and it actually works:
\define video(url, w:"400px", h:"300px") <iframe width="$w$" height="$h$" src="""$url$""" frameborder="0" allowfullscreen></iframe> \end but I don't want to manually change https://www.youtube.com/watch?v=VIDEOID to https://www.youtube.com/embed/VIDEOID I think I already know what should be done: "removeprefix" of "https://www.youtube.com/watch?v=" and "addprefix" of "https://www.youtube.com/embed/" if the whole url is inserted or just addprefix if that's only VIDEOID, "but"... I don't know what the proper syntax should be ¯\_(ツ)_/¯ . (as well as I don't quite understand that "triple quotes" thingy). I've searched the forum and see that someone made even a plugin for that: [Plugin] Embed YouTube Videos <https://groups.google.com/forum/#!searchin/TiddlyWiki/youtube|sort:relevance/tiddlywiki/yqRbxVsYdok/nOOQi73BAwAJ>. Though I don't understand why you need a whole plugin for that if it's just a very simple macro. But I may check RichLinks <http://richlinks.tiddlyspot.com/> later (currently it's just excessive to my needs). -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/76868e04-1e8a-405e-bcda-ab8eaef3f0c3o%40googlegroups.com.

