maxpress icon indicating copy to clipboard operation
maxpress copied to clipboard

TypeError: __init__() missing 1 required positional argument: 'renderer'

Open Koloz opened this issue 2 years ago • 1 comments

[+] 正在导入配置文件... 导入成功 [+] 正在编译CSS样式表... 编译成功 [+] 正在转换example1.md... Traceback (most recent call last): File "/Users/a/PycharmProjects/maxpress/maxpress.py", line 216, in convert_all() File "/Users/a/PycharmProjects/maxpress/maxpress.py", line 176, in convert_all result = md2html(text, styles, File "/Users/a/PycharmProjects/maxpress/maxpress.py", line 54, in md2html md = Markdown() TypeError: init() missing 1 required positional argument: 'renderer'

Koloz avatar Jan 27 '23 04:01 Koloz

mistune库的版本原因,可以回退到0.7.4。或者自己修改代码

pip install -U mistune==0.7.4

YuFeng128 avatar Mar 21 '23 00:03 YuFeng128