Builtin markdown preview does not render code blocks in bullet items

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Cursor ate my code block (see below for a concrete example):

Steps to Reproduce

Write a markdown document with this:

  1. Some bullet line

  2. Landing KV namespaces: create the contact rate-limit namespace and paste
    the ids into landing/wrangler.toml:

    wrangler kv namespace create KV_CONTACT_RATE -c landing/wrangler.toml --env preview
    wrangler kv namespace create KV_CONTACT_RATE -c landing/wrangler.toml --env production
    

    Replace the LANDING_CONTACT_RATE_*_PLACEHOLDER ids with the real ones.

  3. Some other bullet line

Expected Behavior

When switching to Preview mode, a code block with two wrangler kv namespace create lines should be displayed. Instead, it isn’t rendered at all. I get:

  1. Some bullet line
  2. Landing KV namespaces: create the contact rate-limit namespace and paste
    the ids into landing/wrangler.toml:
    Replace the LANDING_CONTACT_RATE_*_PLACEHOLDER ids with the real ones.
  3. Some other bullet line

Operating System

MacOS

Version Information

Version: 3.7.2
VS Code Extension API: 1.105.1
Commit: 8130a1e8cba9ee512c7cc6c3c301c58d17e5d360
Date: 2026-06-02T01:45:40.876Z
Layout: editor
Build Type: Stable
Release Track: Nightly
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.5.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report with repro steps. This is a known bug. A fenced code block nested inside a list item currently breaks in the built-in Markdown preview. We’re already tracking it, but there’s no exact timeline for a fix yet.

As a workaround, try opening the standard Markdown Preview via Cmd+Shift+V Open Preview. From what we’ve seen, that renderer handles nested blocks correctly, unlike the inline preview.

If you notice the bug showing up anywhere else besides code blocks nested in lists, let us know in the thread.