Live Preview: a line starting with ">" inside a code block in a quote is drawn as a nested quote

Steps to reproduce

  1. Paste this into a note:

    > ```
    > line one
    >> line two
    > ```
    
  2. Look at it in Live Preview and Source mode, then in Reading view.

Did you follow the troubleshooting guide?

Yes (reproduced in the sandbox vault, no community plugins).

Expected result

Everything between the fences is code, so the third line is the code line > line two, as Reading view shows: a quote that holds a code block of two lines, line one and > line two.

Actual result

The editor reads the second > of the third line as a nested quote, even though the line is inside the code block:

  • Live Preview draws a second quote border on that line, hides the >, and shows only line two.
  • Source mode styles the line as a level 2 quote.

Environment

SYSTEM INFO:
	Obsidian version: 1.15.0
	Installer version: 1.14.4
	Operating system: Windows 11 Pro 10.0.26300
	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

Sandbox vault, no community plugins, default theme and settings.

Additional information

This shows up when quoting code or a log whose lines begin with >, such as an email reply or a shell prompt.

Related, fixed in 1.9.3: Angular brackets “>” will mess live preview of codeblocks in quotes and callouts, about < in a quoted code block.

1 Like