gregorias / anki-code-highlighter

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

Don't add a spurious newline #51

Closed gregorias closed 1 year ago

gregorias commented 1 year ago

Bug description The block highlighting mechanism adds a newline.

Reproduction steps Steps to reproduce the behavior:

  1. Highlight echo with Highlight.js.

You'll see that the pre-block comes with an appended br-tag.

Expected behavior No br-tag is appended.

These tags are annoying. Especially when I have a code-only field. I don't want a spurious empty line after the code block.