axiros / terminal_markdown_viewer

Styled Terminal Markdown Viewer
Other
1.81k stars 106 forks source link

HTMLParser.unescape in python 3.9 #97

Open TheNonexistent opened 2 years ago

TheNonexistent commented 2 years ago

Hi. In python 3.9.0 HTMLParser.unescape was removed so the app throws error when trying to parse:

$python3 --version   

Python 3.9.5

and:

File ".../mdv/markdownviewer.py", line 970, in formatter
    t = html_parser.unescape(t)
AttributeError: 'HTMLParser' object has no attribute 'unescape'
sheharyaar commented 2 years ago

After searching a few forums, I came to know that in python 3.9.0 HTMLParser.unescape was removed

sheharyaar commented 2 years ago

Possible duplicate of #86 https://github.com/axiros/terminal_markdown_viewer/issues/86#issuecomment-774416153

balazser commented 2 years ago

the same issue is here.. :|