Closed aarchiba closed 2 years ago
It looks like markdown
and pymarkdown-extensions
aren't properly pinned, so the version of pymarkdown-extensions
that gets installed is incompatible with a breaking change in markdown
.
This can be fixed quickly by pinning exact versions, but I'm trying to see what needs to happen to upgrade everything to the latest version. Once I've done that, I'll pin to exact versions.
Note for myself: plasTeX hasn't tagged a new release since 2019, but the current master branch has been updated to work with jinja2 3.1. I've opened plastex/plastex#292 to prod them to make a new release.
Just a quick note to say that I had implemented a lot of functionality in Chirun by overriding specifically that old version of plasTeX's behaviour with monkey patching. That's what a fair amount of the contents of the chirun/plastex
directory does, particularly chirun/plastex/overrides
.
IIRC upgrading to the as-yet-untagged version of plasTeX>=3.0 will not only involve API changes but you'll also need to remove no-longer-required patches that are new merged into plasTeX's main branch (e.g. the tikz packages and supporting imagers), and/or re-work patches I had made for the old plasTeX v2.1 to work with the new version.
I had clearly made an attempt at an upgrade to v3 at some point in 2020 (See https://github.com/chirun-ncl/chirun/tree/plastex3/), but it will now be behind and I forget how successful I was.
Thanks, @georgestagg! I suppose getting rid of the overrides will be easier once the plasTeX team document their changes.
I made pretty good progress, which I've committed in a branch called updated-2022
. I diffed the output of the sample course on this version and the current master
branch, and the big problems I noticed were the runnable
environment in markdown, and the revtex documentclass, but it does compile. I reckon it'd take another day or two to get there.
We really need some unit tests! I will set New George on that once we know who that is!
I've tagged a version v0.7.1 which pins exact versions of the dependencies, so avoiding this error.
I tried following the install instructions (conda version): https://chirun.readthedocs.io/en/latest/getting_started/cli/install.html and ran into trouble.
To avoid #129 I used
pip install "Jinja2<=3.0.0"
, but now I receive:This appears to be some kind of version problem with
pygments
: https://github.com/squidfunk/mkdocs-material/issues/3840I am using the version of
pygments
that bug report cites as the most current but the bug report suggests that some package that is callingpygments
might be triggering the problem?Output of
pip freeze
:Additionally doing
pip install "Pygments<2.12.0"
seems to have fixed the problem.