terminal_markdown_viewer icon indicating copy to clipboard operation
terminal_markdown_viewer copied to clipboard

HTMLParser.unescape in python 3.9

Open TheNonexistent opened this issue 4 years ago • 3 comments

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'

TheNonexistent avatar Oct 26 '21 22:10 TheNonexistent

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

sheharyaar avatar Dec 13 '21 18:12 sheharyaar

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

sheharyaar avatar Dec 13 '21 18:12 sheharyaar

the same issue is here.. :|

balazser avatar Jan 10 '22 16:01 balazser