Editor: a code fence left open in a quote or list item keeps styling the rest of the note as code

Steps to reproduce

Paste each sample into its own note and compare Source mode / Live Preview with Reading view.

Sample 1, a quote:

> ```
> code

Paragraph after the quote, with a [[link]] and a #tag.

Sample 2, a list item:

- ```
  code

Paragraph after the list, with a [[link]] and a #tag.

Did you follow the troubleshooting guide?

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

Expected result

A fenced code block that is not closed ends with the quote or list item that holds it, as Reading view shows: the paragraph after it is a normal paragraph with a working link and tag.

Actual result

The editor keeps the fence open after its container ends:

  • In a quote, the fence is read as an inline-code run that no blank line ends. Everything after it, the following paragraph included, is styled as code until a later run of three or more backticks.
  • In a list item, the fence ignores the end of the item, and the following lines are styled as code block lines of the list.

In both cases the last paragraph is shown as code in Source mode and Live Preview, with [[link]] and #tag as raw text: no link, no tag. Reading view shows the code block inside the quote or list item, then a normal paragraph with a working link and tag, and the metadata cache indexes both.

Environment

SYSTEM INFO:
	Obsidian version: 1.14.5
	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

Sample 1, Live Preview:

Sample 2, Live Preview:

Sample 1, Reading view:

Sample 2, Reading view:

Related but different: Editing modes: code blocks in blockquotes rendered as paragraph instead of code (an indented code block in a quote).