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/31a55bad-ce45-4c51-8250-f89adf882b03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to