Fails to render `bash` code block after bulleted list

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Certain Markdown is not being rendered properly in Cursor’s Markdown Preview

Steps to Reproduce

1. A
   - B

   ```bash
   # left off
  1. C

Is rendered as the attached screenshot (incorrectly)

### Expected Behavior

Not removing the code block in the rendering

### Screenshots / Screen Recordings

![Screenshot 2026-04-20 at 3.41.38 PM.png|116x146](upload://om5rXF1o3j4ILb9L19o0ulmYSmE.png)

### Operating System

MacOS

### Version Information

Version: 3.1.17
VSCode Version: 1.105.1
Commit: fce1e9ab7844f9ea35793da01e634aa7e50bce90
Date: 2026-04-19T19:33:58.189Z
Layout: editor
Build Type: Stable
Release Track: Early Access
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0

### Does this stop you from using Cursor

No - Cursor works, but with this issue

To be clear, as the Markdown feature gets broken by my report.

Here is how Cursor incorrectly renders it:

Here is how PyCharm correctly renders it:

Hey, thanks for the clear repro and the comparison with PyCharm, it really helps.

Confirmed. A fenced code block nested inside a numbered list with a sub-bullet disappears in Markdown Preview, so 2. C visually sticks to the previous item. Standard markdown-it parses this correctly, so the issue is in our preview renderer. I’ve added this to the existing markdown rendering issue. I can’t share an ETA yet, I’ll post an update here once I have one.

Workaround if you need a quick fix for a specific file. Add a blank line with no indentation between the list and the code block so it exits the continuation list. It renders correctly, but the block is no longer structurally nested.