You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
In their words, markdown-it does not actually create an AST; it is a "token stream", i.e. it is not a tree, but a linear set of tokens like: [heading, open_paragraph, text, close_paragraph]
You can see what this looks like and how it works by going to https://markdown-it.github.io/ and clicking on the debug tab.
Apart from the built-in HTML render, the main implemented render is https://github.com/executablebooks/MyST-Parser/blob/master/myst_parser/docutils_renderer.py. This is relatively complex, but should give you some pointers.
Note, for this renderer, I created the markdown_it.token.nest_tokens function, which I required to turn the token stream in to more of an AST tree, and may be useful for other renderers.
so yeh have a look at those, then come back with questions 😄
Is your feature request related to a problem? Please describe.
Is it simply a matter of copy pasting
renderer.py
and changing the functions? I imagine I would have to familiarize myself with the AST first.I want to write a Vim help renderer and maybe also a Markdown renderer (#10).
The text was updated successfully, but these errors were encountered: