-
-
Notifications
You must be signed in to change notification settings - Fork 12
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 parser options #13
Comments
What are you trying to parse here besides the usual? |
I have keyword that indicates following block should be wrapped into my component. And I need to handle this keyword in parser to properly set token type. |
Hi, Currently the parser accepts only tokens that are parsed by marked. See Lines 39 to 41 in 6fbd187
I'am open to suggestions to solve this, if marked allows to extend and parse into custom tokens, we could allow here as well. Why not. |
I wondered for a while what you might be able to do here. Reading the marked documentation, you can see - we need to define a custom object as shown in the example. Maybe you can expose the |
Currently I am working something with Boy its not easy. I'll try but even if I support extensions, It might help your case, but it might not be possible to provide 100% support for extensions, as the renderer part in marked returns html and not react elements so it might be omitted |
Any updates here? I think I am running into some related issue. It is as if |
Some marked extensions cannot be used, since the renderer is different. Marked extensions returns html and here react component is expected. You can now to |
Thank you for the great extension! It really helps!
So, I need to parse some custom markdown tokens from own tokenizer extension. I can add functions to custom renderer but is there an option to make parser recognize new token types?
The text was updated successfully, but these errors were encountered: