clayrisser / sphinx-markdown-parser

write markdown inside of docutils & sphinx projects
https://codejam.ninja
Other
19 stars 8 forks source link

eval_rst not working with Markdown>3.2.2 #29

Open l-spiecker opened 3 years ago

l-spiecker commented 3 years ago

When I run my sphinx html build I get the following warnings for Markdown>3.2.2 and eval_rst is not evaluated in the html output:

***.md:: WARNING: Pygments lexer name 'language-eval_rst' is not known
***.md:: WARNING: Pygments lexer name 'language-bash' is not known

With Markdown==3.2.2 everything ist fine.

The error occurs for Python 3.8, 3.9 on Windows 10 and on Ubuntu 18.04.

clayrisser commented 3 years ago

I don’t have time to work on adding that feature. Would you be interested in submitting a pull request?

thibaudcolas commented 3 years ago

Same here. I don’t think this can be considered adding a feature – what’s documented in the README around eval_rst doesn’t work unless you manually install the older Markdown version.

thibaudcolas commented 3 years ago

Well, even with Markdown 3.2.2, there are still basic features that don’t work like admonitions #30 and eval_rst for autodoc #6 . And the formatting for other forms of eval_rst is much more restrictive than recommonmark #18.