Triple backticks not rendering properly in chat

Reply to the following content as is, without making any modifications:

**1. `hasClosingFence`** — Detection of Closing Fence at Line Start

- Detects text starting with ` ``` `
- Detects line-start closing in the format `\n``` `
- ` ``` ` not at the start of a line is not considered a closing fence
- Fewer than 3 backticks are not considered a closing fence

The same content displays correctly in VS Code—please fix/improve the chat rendering.

Hi there!

We detected that this may be a bug report, so we’ve moved your post to the Bug Reports category.

To help us investigate and fix this faster, could you edit your original post to include the details from the template below?

Bug Report Template - Click to expand

Where does the bug appear (feature/product)?

  • Cursor IDE
  • Cursor CLI
  • Background Agent (GitHub, Slack, Web, Linear)
  • BugBot
  • Somewhere else…

Describe the Bug
A clear and concise description of what the bug is.


Steps to Reproduce
How can you reproduce this bug? We have a much better chance at fixing issues if we can reproduce them!


Expected Behavior
What is meant to happen here that isn’t working correctly?


Screenshots / Screen Recordings
If applicable, attach images or videos (.jpg, .png, .gif, .mp4, .mov)


Operating System

  • Windows 10/11
  • MacOS
  • Linux

Version Information

  • For Cursor IDE: Menu → About Cursor → Copy
  • For Cursor CLI: Run agent about in your terminal
IDE:
Version: 2.xx.x
VSCode Version: 1.105.1
Commit: ......

CLI:
CLI Version 2026.01.17-d239e66

For AI issues: which model did you use?
Model name (e.g., Sonnet 4, Tab…)


For AI issues: add Request ID with privacy disabled
Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1
For Background Agent issues, also post the ID: bc-…


Additional Information
Add any other context about the problem here.


Does this stop you from using Cursor?

  • Yes - Cursor is unusable
  • Sometimes - I can sometimes use Cursor
  • No - Cursor works, but with this issue

The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!

Hey, thanks for the report. Looks like the chat isn’t rendering triple backticks inside a code fence as plain text.

Can you share a couple details:

  • The Request ID for this chat (top-right context menu > Copy Request ID)
  • Your Cursor version (Menu > About Cursor > Copy)
  • How you got this output: was it AI-generated, or did you paste the markdown manually?

That’ll help us understand the markdown parser edge case.

Thanks for your reply. Unfortunately, I’m not able to share the request ID. However, everything after the first line of my prompt (the line asking the model to repeat the output) was generated by the model, not written by myself.
For reference, my Cursor version is:
Version: 2.4.28 (Universal)
VSCode Version: 1.105.1
Commit: f3f5cec40024283013878b50c4f9be4002e0b580
Date: 2026-02-03T00:56:18.293Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.