MyST-Parser icon indicating copy to clipboard operation
MyST-Parser copied to clipboard

Please Add Support for `sphinx` extensions

Open adam-grant-hendry opened this issue 1 year ago • 2 comments

Context

Several sphinx extensions are used in older restructured text projects, like;

and several others. Lacking support for these prevents other project from transitioning towards using myst-parser.

e.g. I will not switch over whilst these extensions are unavailable. I am able to achieve more by using restructured text, and these are still able to be used with the sphinx-themes.org themes.

Proposal

The proposal is to add extended support for sphinx extensions to the Sphinx parser in myst-parser.

Tasks and updates

TBD

adam-grant-hendry avatar Oct 19 '22 05:10 adam-grant-hendry

Hey @adam-grant-hendry I'm not sure what you mean here; you can use any extension alongside myst-parser, as indeed is the case for the building of the documentation here: https://github.com/executablebooks/MyST-Parser/blob/28725fceb8e1e117cb247b06a267f82c501ce527/docs/conf.py#L28

Is there a particular issue you have with compatibility on a certain extension?

chrisjsewell avatar Oct 20 '22 07:10 chrisjsewell

Hi @chrisjsewell,

Ah, perhaps I misunderstood: the numpydocs documentation details using rst-style directives, so I wasn't sure if there would be a conflict with using rst-style directives in docstrings if I wanted to use myst-parser syntax in my documentation files...?

One thing for certain that would be excellent is support for adding/specifying 3rd-party MarkdownIt plugins via the conf.py (Issue #632).

adam-grant-hendry avatar Oct 21 '22 00:10 adam-grant-hendry