I’m trying to use a core icon for decoration using CSS.
My initial approach was to use the following css/wikitext:
content: url(<<datauri "$:/core/icon">>);
This works for TW older than v5.3.0 and for “normal” non-parametrized SVG icons. It doesn’t work however with the new parametrized core icons, since the datauri macro will produce invalid SVG.
I tried to retrieve the icon in plain text through <$transclude $tiddler="$:/core/icon" size="1em" $output="text/plain" />
, but this gives no output.
There are surely many ways to work around this problem, like introduce the icon in another way than CSS, or create a non-parametrized copy of the given core icon and use datauri macro with that. But I was wondering if there is a way to do it “like it used to be possible”.
Many thanks for help in advance!