executablebooks / myst-vs-code

A syntax highlighter for the MyST Markdown format
https://marketplace.visualstudio.com/items?itemName=ExecutableBookProject.myst-highlight
MIT License
35 stars 15 forks source link

Rendering of sphinx extensions #40

Open ksdaftari opened 2 years ago

ksdaftari commented 2 years ago

This may be out of scope of this project or perhaps I am misreading documentation on how to do this, but wanted to check: is it possible for additional installed sphinx extensions to have these rendered?

for example have https://sphinx-panels.readthedocs.io/en/latest/ installed and using "dropdown" directive like below:

image

which currently renders the unknown directive: image

if this is out of scope with this project, curious how others do local development within vscode to help render extensions like this, only other project seen is like: https://docs.restructuredtext.net/

welcome[bot] commented 2 years ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
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).
Welcome to the EBP community! :tada:

ksdaftari commented 2 years ago

with my above comment i do also wonder for unkown directories would be better for to be able to render the nested directives and just treat unkonwn rendering like do above (which is close adnomination directive)

example below be nice to have syntax highlighting markdown source and when render still render code block.

image

image