Skip to content

Custom link formatter #1179

Answered by ChristianMurphy
aeharding asked this question in Q&A
Jun 26, 2023 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Welcome @aeharding!

For context see the unified architecture. (https://github.com/unifiedjs/unified#description)
remark-gfm is a parser, it will always run before a transformer plugin, which is what I assume myCustomPlugin is.

You could create your own parser plugin, but it is advisable not to for user/author experience purposes, see https://github.com/micromark/micromark#extending-markdown
As an alternative, consider using directives, which are semi-standard and pre-built https://github.com/remarkjs/remark-directive

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@aeharding
Comment options

@ChristianMurphy
Comment options

@aeharding
Comment options

@ChristianMurphy
Comment options

@wooorm
Comment options

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
3 participants