Is there a way to parse an input document before remark? #214
-
I had thought that (the that the initial tree is parsed, as it if were markdown?
printed from:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
remark is an ecosystem around unified. I guess you mean
See https://github.com/unifiedjs/unified#overview for how unified works. |
Beta Was this translation helpful? Give feedback.
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.