-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add support for serializing math nodes as markdown #148
Conversation
@wooorm I made this a draft to get your opinion on how we're going to be serializing the extensions should we do any special way in the API by allowing the user to configure the extension or no. This draft doesn't allow the user to configure the extension and we serialize the extensions nodes in a "normal" way. |
No, I don’t think so. I think it’s good to always serialize nodes, if we understand them! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a small nit on docs :)
Otherwise, I think it’s good? You? Anything in particular you wanted me to look at?
No, all good. I'll probably work on the mdx nodes next. Thank you :) |
Super, thank you! 👏 |
so,I think that to_markdown api has need some time to used?thanks that pr,I need that feature too |
@SamPeng87 It's usable but it needs some documentations and most likely a release into the registry, for now you can add the following to your [dependencies]
mdast_util_to_markdown = { git = "https://github.com/wooorm/markdown-rs.git" } The api is pretty simple just have a look at the exposed functions here : https://github.com/wooorm/markdown-rs/blob/main/mdast_util_to_markdown/src/lib.rs |
@bnchi yes,thanks,I found that there was no document to tell me how to use it, but I found that there was in master branch, so I just studied the latest master of github master branch instead of crate.io。that work。thanks you。 |
Adds support for serializing math nodes in mdast_util_to_markdown
TODO :