gregorias / anki-code-highlighter

Anki plugin for code syntax highlighting.
GNU Affero General Public License v3.0
55 stars 3 forks source link

C++ code block issue with new line in web editor in Desktop version (Pygments) #31

Closed pedy closed 1 year ago

pedy commented 1 year ago

As seen in the below image, when typing code in the web editor, hitting Enter or Shift+Enter would generate a <br> tag in the HTML source. 0-RichEdit Applying Pygments C++ code block seems to be unable to replace <br> tags with new line. 2

Using HTML editor to type the code in would be inconvenient; for example because of < and > characters, that must be &lt; and `> respectively.

gregorias commented 1 year ago

It's a valid bug, and I can reproduce it. I'll work on a fix. Thank you for reporting.