-
I have used the Now I'd like to change the tree before making more operations on it: specifically, I need to inspect and potentially change the I have noticed the package does contain a Transform type; but I haven't been able to figure out how to do it. What is the correct/intended way of doing an operation like this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
plugins contain transforms. Transforms are at the unified level. See the unifiedjs/unified repo for info. Utilities—the mdast level—do not have a particular interface. You don’t need it. Use |
Beta Was this translation helpful? Give feedback.
plugins contain transforms. Transforms are at the unified level. See the unifiedjs/unified repo for info.
Utilities—the mdast level—do not have a particular interface. You don’t need it. Use
fromMarkdown
to get a tree. Then callvisit
fromunist-util-visit
to walk the tree. That’s it.