I’m trying to get a stylesheet working that will automatically insert the SVG icon before the link text. Here’s what I have so far:
\define link-icon-style()
<$set name=“uri” value=<<makedatauri “”"$(tid)$""" “text/plain”>> >
<$set name=“icon” tiddler=<> field=“icon”>
<$set name=“iconsrc” tiddler=<> >
<$list variable=“urititle” filter="""[removeprefix[data:text/plain,]]""">
</$list>
</$set>
</$set>
</$set>
\end
<$list filter="""[has[icon]]""">
<$vars tid={{!!title}}>
<>
</$vars>
</$list>
When I inspect the DOM and look at the tag created, the value of my content
CSS rule shows as an … specifically a TiddlyWiki external link. I think some value is being interpreted as WikiText instead of plain text somewhere, but I’m several hours deep into head-banging on the issue so I’m reaching out for help.
I’m a veteran JS programmer but a TiddlyWiki n00b.
Anyone see what I’m doing wrong here?