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

Steps to reproduce

Create a note and type:

Expected result


Actual result



  • 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.