Inside html tags < is not automatically escaped

Steps to reproduce

In live preview mode, ype the following:

heading 1

italic text
a <-> b

heading 1

italic text

Expected result

I expect to see, in live preview, the H1 and italic text to render below as they do above, and for the HTML tags to disappear, when the cursor moves elsewhere

Actual result

The HTML tags did not disappear. The H1 and italic text below the HTML remained as if in source mode, while the ones above were displayed properly.


  • Operating system: WIndows
  • Debug info:
    Obsidian version: v0.14.6
    Installer version: v0.12.5
    Operating system: Windows 10 Home 10.0.19043
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: none
    Snippets enabled: 2
    Safe mode: on

Custom theme: for cosmetic issues, please first try updating your theme to latest. If still not fixed, please try to make the issue happen in the help vault or disable community theme and snippets.

Additional information


We don’t support inline HTML. Html block must be in its own markdown block, that is, separated by empty lines.