-
I'm trying to refactor a part of Sphinx-GitHub-Changelog, a sphinx extension that generates a changelog based on GitHub releases. I can have either the GFM or the HTML of a GitHub release body (whichever is best). I'd like to use Myst-Parser to turn those into docutils nodes that my sphinx directive should return. Does Myst-Parser expose an API to do that? I've spent some time on the doc and couldn't find it. There's the Anyone has an idea ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Is the Python code in https://myst-parser.readthedocs.io/en/latest/docutils.html#single-page-builds of any help to you? |
Beta Was this translation helpful? Give feedback.
myst-parser
renders MarkdownIt tokens and populates an existing docutils node (document). SeeMyST-Parser/myst_parser/mdit_to_docutils/base.py
Line 100 in d3d7fbb
Does this provide a helpful place to start? :)