Minor bug in the new version (perhaps earlier) dealing with dictionary tiddlers

46 views
Skip to first unread message

Stephen Kimmel

unread,
Aug 15, 2019, 3:27:25 PM8/15/19
to TiddlyWiki
I use a dictionary tiddlers to store, among other things, colors in the hex format. Things like

alt-text: #ee82fd
highlight: #ffff80

In the earlier versions I could that with a statement like

@@background-color:{{$:/palettes/Editor##highlight}};Text to be highlighted @@

and it would work correctly. The latest version stopped working. When I enter

{{$:/palettes/Editor##highlight}}

instead of getting #ffff80, I now get something like

A. ffff80

It appears that it parsing it as a bullet item. Is there an easy work-around for that?

Mark S.

unread,
Aug 15, 2019, 4:58:36 PM8/15/19
to TiddlyWiki
Is it possible you are mistaken? I get similar results with 5.1.13.

I think you need to use a macro to concatenate your style settings and your dictionary values. This works, for instance:

\define myhighlightedtext() @@background-color:$(bgc)$;Text to be highlighted @@

<$set name=bgc value={{$:/palettes/Editor##highlight}}>
<<myhighlightedtext>>
</$set>


Good luck!

Reply all
Reply to author
Forward
0 new messages