-
New to unifiedjs. Reading the docs, I see
Sorry, but this isn't really clicking for me. Perhaps someone could give an example of a frozen processor versus a non frozen processor? Why might I freeze (or not freeze) a processor? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Did you click that link? https://github.com/unifiedjs/unified#processorfreeze. That's some more info and a pretty thorough example? |
Beta Was this translation helpful? Give feedback.
This clones (
()
), then configures (.use(...)
)This tries to configure something that is shared with everyone. If you would be able to configure it, everyone else would also be configured.
The reason is that how you use
rehype
in one place, should not affect how other people, other places, use it!Traversing trees happens somewhere else. This is unrelated to that!