Callout breaks nested list rendering in reader view

Adding a call-out at the bottom of a nested list breaks the rendering of that nested list in reader view, but not in editing view. Repros in sandbox vault with default theme and no plugins.

Steps to reproduce

  1. Open the sandbox vault.
  2. Paste the following text at the top of the welcome note.
# My Heading Here
* Foo bar baz
    * **Bold foo,** zoo.
        * Goo boo.
    * **Lorem ipsum** dolor sit amet. 
        * Quux baz.
    * **Foo bar**. Baz.
    * Zoo goo.
    * Moo bar.  
>[!important]
> Adding this breaks everything.

Did you follow the troubleshooting guide? Y

Expected result

The nested lists render correctly in reading view, like it does in edit view:

Actual result

What it actually looks like; notice the broken list rendering:

Environment


Additional information

Removing the bottom call-out (the last two lines in the to-be-pasted text) fixes the rendering issue, so something is up with how the parser interacts with the call-out and nested lists.

Adding an empty line between the call-out and the last list item also fixes the problem, but I don’t think it should be necessary, and even if it is necessary, the edit view and the reader view should render the same. The current behavior cannot be anything but a bug since the same syntax renders one way in edit mode and a different way in reading mode.

Adding anything except a blank line breaks nested list rendering in reading mode