mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Another fix for filtered palette previews
This commit is contained in:
parent
38d5daaf12
commit
bad9517153
@ -3,7 +3,7 @@ title: $:/snippets/currpalettepreview
|
||||
\whitespace trim
|
||||
|
||||
\procedure colour-div-filtered(class,styleName,styleColour)
|
||||
\function colour(name) [<currentTiddler>getindex<name>] :map[subfilter<currentTiddler>]
|
||||
\function colour(name) [<currentTiddler>getindex<name>] :else[<currentTiddler>get[palette-import]getindex<name>] :else[[none]] :map[subfilter<currentTiddler>]
|
||||
<$let colour-filter={{{ [<currentTiddler>getindex<styleColour>] }}}>
|
||||
<!-- Note the join, needed to cope with palette entries containing spaces -->
|
||||
<$let colour-result={{{ [subfilter<colour-filter>join[ ]] }}}>
|
||||
|
Loading…
Reference in New Issue
Block a user