Skip to content

Is there a way to parse an input document before remark? #214

Answered by wooorm
NullVoxPopuli asked this question in Q&A
Discussion options

You must be logged in to vote

remark is an ecosystem around unified. I guess you mean remark-parse, which is a plugin?

remark-parse is a plugin that specifies a parser. You cannot do things before parsers. They’re the first thing.
Some other plugins specify transforms. There are several transforms. So you can run things before and after other transforms.
But you cannot do things before the first thing.

See https://github.com/unifiedjs/unified#overview for how unified works.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianMurphy
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