maint/extract-md-links doesn't work with python3-mistune 3.0.2-2
I'm unable to run maint/extract-md-links
on arch (it looks like the script is only known to work with python3-mistune 2.0.4-1
?):
Traceback (most recent call last):
File "/home/gabi/code/other-arti/maint/extract-md-links", line 117, in <module>
print(extract_links(text).as_json())
^^^^^^^^^^^^^^^^^^^
File "/home/gabi/code/other-arti/maint/extract-md-links", line 83, in extract_links
renderer = renderer=mistune.AstRenderer();
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'mistune' has no attribute 'AstRenderer'. Did you mean: 'BaseRenderer'?
Traceback (most recent call last):
File "/home/gabi/code/other-arti/./maint/gen_md_links", line 147, in <module>
print(process(text))
^^^^^^^^^^^^^
File "/home/gabi/code/other-arti/./maint/gen_md_links", line 129, in process
items = sorted((Link(lnk) for lnk in set(links(s))), key=Link.sort_key)
^^^^^^^^
File "/home/gabi/code/other-arti/./maint/gen_md_links", line 36, in links
assert(p.returncode == 0)
^^^^^^^^^^^^^^^^^
AssertionError
> pacman -Q python-mistune
python-mistune 1:3.0.2-2