Skip to content

Adding a preprocessor to directives? #1354

Discussion options

You must be logged in to vote

Welcome @mikeyhogarth! 👋
There are two types of plugins, parser plugins and AST plugins.
parser plugins always run at the very beginning, remark-gfm and remark-directive are examples of this.
AST plugins run later and can work on the parsed content, your plugin is an example of one of these.

If you want to write a parser plugin, see

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mikeyhogarth
Comment options

@ChristianMurphy
Comment options

@wooorm
Comment options

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