pydata-sphinx-theme
pydata-sphinx-theme copied to clipboard
mistune-3.0.0a1 breaks things
With mistune-2.0.3
and nbconvert-7.0.0rc2
, things work. With mistune-3.0.0a1
and nbconvert-7.0.0rc2
we get:
Exception occurred:
File "/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/nbconvert/filters/markdown_mistune.py", line 49, in MathBlockParser
RULE_NAMES = ("multiline_math",) + BlockParser.RULE_NAMES
AttributeError: type object 'BlockParser' has no attribute 'RULE_NAMES'
This depends on one of these two upstream issues:
- https://github.com/jupyter/nbconvert/issues/1787
- https://github.com/jupyter/nbconvert/issues/1685
Good catch - I added the two upstream issues that I think need to be resolved for this one to be fixed.
Do you think that this issue should block the next release (via being attached to this milestone)? I think that might be a while before this is fixed
I'm going to bump this one to 0.11, since I think we want to make a release before this issue will likely be resolved.
An update for Mistune v3 is already prepared in jupyter/nbconvert#1820, just waiting for a final release.
we are not directly impoting mistune ourselves, is'nt something that should be handled from nbconvert ?
https://pypi.org/project/mistune/3.0.0/ is out. Now we just need to wait for nbconvert to update:
- https://github.com/jupyter/nbconvert/blob/main/pyproject.toml
I will close this and comment on the nbconvert issue and PR.