The following error occurs whenever I click Convert to/from Markdown
button inside a card text.
Debug info:
Anki 2.1.44 (b2b3275f) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.16
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-07-18 17:47:55
Add-ons possibly involved: Auto Markdown
Caught exception:
Traceback (most recent call last):
File “aqt/webview.py”, line 526, in handler
File “/Users/mertnuhoglu/Library/Application Support/Anki2/addons21/1030875226/editor.py”, line 129, in
lambda field_text : onInnerTextAvailable(field_html, field_text))
File “/Users/mertnuhoglu/Library/Application Support/Anki2/addons21/1030875226/editor.py”, line 139, in onInnerTextAvailable
updated_field_html = generateHtmlFromMarkdown(field_text, field_html)
File “/Users/mertnuhoglu/Library/Application Support/Anki2/addons21/1030875226/editor.py”, line 53, in generateHtmlFromMarkdown
encoded_field_html = base64.b64encode(field_html.encode(‘utf-8’)).decode() # needs to be string
AttributeError: ‘NoneType’ object has no attribute ‘encode’