-
The result:
I try with the type
And the same thing happens. Why is that? |
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
Aug 28, 2024
Replies: 1 comment 8 replies
-
What you are attempting to do, is not what |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is not what
filter
does. https://github.com/syntax-tree/unist-util-filter#what-is-this (deep link to readme).As christian mentioned a couple times, you want to walk the tree, traverse the tree, with
unist-util-visit
: