Hi c pa,
Thanks for the reply.
I've tried your way but I couldn't make it work.
Have you tried on https://tiddlywiki.com/
Regards
FrD
Le lundi 20 août 2018 07:28:12 UTC+2, c pa a écrit :
>
> The problem is probably in the number of quote marks. If there are "" in
> the svg then you have to surround them with 3 quotes.
>
> Also the code for the SVG is part of a longer string so you have to set a
> variable to the contents of the svg and then insert that variable in the
> text using substitution like this:
>
> \define svgbeforeclass()
> .square:before{
> display: block;
> content: url("data:image/svg+xml;charset=UTF-8,$(svgcode)$");
> background-size: 28px 28px;
> height: 28px;
> width: 28px;
> }
> \end
> <$set name=svgcode tiddler="svgTiddler" field="text" >
> <<svgbeforeclass>>
> </$set>
>
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/b527d2fb-55d4-4505-ac4e-38bbc0097da1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.