-
Notifications
You must be signed in to change notification settings - Fork 32
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
Create myst-example
directive and change documentation to use it
#250
Comments
I took a swing at this and it was really easy to re-use the same directive class from our My original vision was to feed a single directive multiple .. doc-example::
.. code-block:: rst
Some ``syntax``.
.. code-block:: md
Some `syntax`. Alternatively, it would be more ideal to have rST content converted to MyST syntax and render both syntaxes as a set of tabs (whose labels correspond to the syntax name "rST" and "MyST") sharing a single rendered result. I think this would be better as a derivative of the This will take me some time as the parser used by the state machine seems to be automatically determined based on the source file's suffix. |
Damn. It looks like the rst2myst tool (still in beta) doesn't support the latest docutils. I'll just submit a patch for what I have and put my original vision (a bit zealous even for me) on the back burner (again) till we have a feasible tool/lib to convert rST to MyST. |
I think the
myst-example
directive is more of a long-term and worthwhile goal. The solution [in #247] is only meant to satisfy #162 per user's request/feedback.Originally posted by @2bndy5 in #247 (comment)
The text was updated successfully, but these errors were encountered: