Text after closing latex or code block causes further text not to render correctly

Steps to reproduce

Create a note and type:
2021-06-08-115549_536x132_escrotum

Expected result

2021-06-08-120729_563x130_escrotum

Actual result

2021-06-08-120744_529x36_escrotum

Environment

  • Operating system: NixOS 21.05
  • Obsidian version: 0.12.3

Additional information

This affects code blocks too.

The spaced repetition plugins has an option that places metadata in HTML comments at the end of text blocks to avoid “breaking list formatting” which is why this issue is slightly more annoying than “just don’t put text after the closing tags”.

I don’t consider this a bug because in commonmark a “block” needs a new line.

Please, Open a feature request.