List has where filter function? #3877
-
I want to customized my special list (like marker with sym.triangle.filled),but when I use show list.where(marker:blabla) :set rule ,it has no effect. can't List have the more detailed management. |
Beta Was this translation helpful? Give feedback.
Answered by
EpicEricEE
Apr 6, 2024
Replies: 1 comment 1 reply
-
The filter is a bit weird, as you have to wrap the marker in a content block. This works: #show list.where(marker: [#sym.triangle.filled]): set text(red)
#list(marker: sym.triangle.filled,
[This is red],
[and so is this]
)
- But this is not However, if you set the marker to an array, you can't filter out list items that use a specific marker. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
xietuhuo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The filter is a bit weird, as you have to wrap the marker in a content block. This works:
However, if you set the marker to an array, you can't filter out list items that use a specific marker.