-
Notifications
You must be signed in to change notification settings - Fork 17
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
Try to adopt Myst Spec where possible. #190
Comments
Once the above is roughly done, we can also replace the serializers I have with something more straightforward : https://gist.github.com/Carreau/62350dabcd75b90eccffb9fca7c2c431, This would allow to emit json that can be rendered by the MyST Js libraries. I don't expect us to have custom nodes and variations, but the closer we are to another spec the better. The Myst folks would I think also welcome feedback on their AST if we need any changes. If we also find a library that already goes from json schema to pyhton-implementation i'm all for it, I just hadn't found any that support json schema |
Note, it look like we can render the Mdast directly using MystJS:
|
Are you aware of something equivalent of Trying to replace UPDATE: |
Perfect, That sounds good, and if it makes less nodes that's a plus ! |
Status of Nodes to replace/remove:
|
I've recently talks with a couple of the myst folks, and I'd like to see if we can adopt the myst AST, or at least something as close to it as possible.
See the structure of the Myst AST
The myst spec are published as json schema, I haven't found it as Python objects, so I've started to write a notebook to see if we can directly generate teh Python dataclasses to represent those nodes.
https://gist.github.com/Carreau/d5d80d644b4f43e601e67874619d855a
It a bit rough on the edges, and I'm ok if there is some manual edition.
Once this is done, the goal is to mostly replace the custom ast I have in here
The text was updated successfully, but these errors were encountered: