Skip to content
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

Serialize parsed readme into json #117

Open
josegonzalez opened this issue Oct 16, 2024 · 2 comments
Open

Serialize parsed readme into json #117

josegonzalez opened this issue Oct 16, 2024 · 2 comments

Comments

@josegonzalez
Copy link

It would be awesome to serialize a parsed readme doc into json. Why? This would allow me to build a compatible parser in golang (for embedding in golang-based binaries) that can in theory parse the same way your implementation does. I could then use your tests as integration tests for my parser :)

@jacobdeichert
Copy link
Owner

Check out the mask-parser crate: https://github.com/jacobdeichert/mask/tree/master/mask-parser

Also published to crates.io: https://crates.io/crates/mask-parser

This library is not considered stable and it's undocumented. But it should do what you want, parsing a readme and spitting out json.

@jacobdeichert
Copy link
Owner

Also, there's an undocumented mask CLI option called --introspect which spits out a json string as well. You can run that if you want an idea of what it will look like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants