Skip to content

How to use the Transform? #120

Answered by wooorm
zblesk asked this question in Q&A
Dec 11, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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 call visit from unist-util-visit to walk the tree. That’s it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wooorm
Comment options

@zblesk
Comment options

Answer selected by zblesk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants