gregorias / anki-code-highlighter

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

Pygments highlighter loses a <meta> tag #47

Closed gregorias closed 1 year ago

gregorias commented 1 year ago

Bug description Pygments highlighter loses a tag.

Reproduction steps

  1. Copy paste the following code into a field:
<head><meta></meta></head>
  1. Highlight the pasted code with Pygments (HTML language).

You'll see that a highlighting for <head><meta></head> gets produced.

Expected behavior

The highlighter should not try to sanitize the HTML.

Additional context Seems like related to the bug from https://github.com/gregorias/anki-code-highlighter/issues/45#issuecomment-1455174234.

gregorias commented 1 year ago

This has been fixed as well.