HTML inside a code block inside a callout is interpreted and breaks the rest of the note

Steps to reproduce

  1. Open a sandbox vault,
  2. Write something in Markdown,
  3. Write a callout, with a code block inside containing HTML code,
  4. Write something else in Markdown

You can copy and paste this :

# Lorem ipsum
Lorem *ipsum* **dolor** sit *amet*, **consectetur** adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

> [!IMPORTANT]
> Lorem *ipsum* :
> ```html
> <tag name="This html is read by Obsidian while it shouldn't.">
> ```
> This part of the document is now broken because the HTML tag is never closed.
> Lorem *ipsum*


# Lorem ipsum
Lorem *ipsum* **dolor** sit *amet*, **consectetur** adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Did you follow the troubleshooting guide? Yes

Expected result

What is inside the code block should not be interpreted at all, but here, it is, and it breaks the rest of the document.

Actual result

The HTML tag is interpreted, but since it’s not closed, it breaks the document.

Environment

SYSTEM INFO:
Obsidian version: v1.8.9
Installer version: v1.6.7
Operating system: Windows 11 Pro 10.0.26100
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Please note that this bug was found not by writing HTML, but XML. Obsidian interpreted the XML line as HTML because the syntax is the same, but there is possibility to close the line in XML.

Screenshot of the bug in a sandbox vault for illustration :

With regards

Looks like a duplicate of this report:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.