Paste image into markdown not working

Thanks for reporting a bug you have found in Cursor!
Please add the following info to help us diagnose your issue:

:white_check_mark: Check the forum to ensure the issue hasn’t been reported already
:lady_beetle: Provide a clear description of the bug
I can directly paste the image from the clipboard into the md file (actually, it saves in my workspace and paste the link in the md file). but at some point, I failed to do so and after pasting it will only put the plaintext image.png into the md file, either saving the image in the workspace. I checked my settings.json and I do have these configurations:

    "editor.pasteActions.enabled": true,
    "markdown.copyFiles.destination": {
        "**/*": "${documentDirName}/assets/"
    },

However, in vscode, I can do so as expected.
Also, it’s worth mentioning that I can drag this image into the md file and it also does the expected operation just like I paste it into this md. The bug occurred at some point after I got around 30 images in my workspace. But this bug still existed even though I switched to a new workspace.
:counterclockwise_arrows_button: Explain how to reproduce the bug (if known)

  • create a .md file
  • copy an image from somehwere
  • paste it using ctrl + v / cmd + v directly into the md file
  • It will show up with plain text image.png instead of ![alt text](assets/image_30.png)
    :camera: Attach screenshots or recordings (e.g., .jpg, .png, .mp4).

:laptop: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).
I’m on a Windows11 OS, and am using Cursor 0.45.8 (the VSCode version is 1.96.2)
:prohibited: Tell us if the issue stops you from using Cursor.
I appreciate your help in advance. It’s just weird that this can work in my VSCode but not in my cursor.

7 Likes

Hey, yes, I confirm this. It works in VSCode, but not in Cursor. Thanks for reporting it.

3 Likes

Hello,
I have the same problem.
Have you fixed it for the next update?
Thank you.

I’m seeing same issue on Mac. As others mentioned, VSCode does support pasting images in markdown cells long ago. Cursor needs catch up.