[tw5] Re: Wrap tiddler body in HTML

2021-10-27 Thread Matt Savard
I'm trying to use the new tailwindcss dynamic JIT compiled CDN for TiddlyWiki. I wanted to use the typography plugin but when I defined it in a CSS tiddler it didn't work. Placing it in the tiddler itself worked great. Using Mats solution made it work just fine though. On Tuesday, October 26,

[tw5] Re: Wrap tiddler body in HTML

2021-10-27 Thread Mat
On Tuesday, October 26, 2021 at 8:24:43 PM UTC+2 Matt Savard wrote: > Is there any way to wrap each tiddly body in HTML? For example, wrap each > tiddler body in a div with a certain class applied. Yes, you can edit the template tiddler for the body, i.e the shadow tiddler called $:/core/ui/Vi

[tw5] Re: Wrap tiddler body in HTML

2021-10-26 Thread Télumire
This is because tiddlywiki automatically close any html tag you open in a tiddler. If you want to wrap the text field in a tag, you will need to either edit $:/core/ui/ViewTemplate/body or hide it and show a custom ViewTemplate instead. Can I ask why you need to do that ? Le mardi 26 octobre 20

[tw5] Re: Wrap tiddler body in HTML

2021-10-26 Thread Matt Savard
To be more clear, I've tried creating two new tiddlers (HTMLStart and HTMLEnd), one for the HTML before the body and one for the HTML after the body. I've tagged these with $:/tags/ViewTemplate, then I rearranged them so the do surround the tiddly body. But it doesn't like that they are HTML. I