-
-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom syntax and custom components are not working #847
Comments
Welcome @fengliner! 👋 https://github.com/syntax-tree/mdast-util-to-hast?tab=readme-ov-file#fields-on-nodes |
This comment has been minimized.
This comment has been minimized.
It looks like you are trying to make your own version of https://github.com/remarkjs/remark-directive. Perhaps you can use that instead btw! |
Initial checklist
Affected packages and versions
react-markdown@9.0.1
Link to runnable example
No response
Steps to reproduce
I want to add a custom syntax, which is warped by :::tip::: and :::/tip:::,will render by my custom component. But, it is not working. My demo code is blow
Expected behavior
The content warped by :::tip::: and :::/tip::: will render by tip component.
Actual behavior
It was rendered as text.
Runtime
No response
Package manager
No response
OS
No response
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: