mushanshitiancai / vscode-paste-image

paste image from clipboard to markdown/asciidoc directly!
MIT License
422 stars 127 forks source link

Add MDX support #71

Open thomaskoppelaar opened 4 years ago

thomaskoppelaar commented 4 years ago

Adds MDX support.

MDX allows for JSX to be added into Markdown - I thought it would be great if this extension would allow that as well :smile:

The syntax is the same as Markdown, the only thing that needs to be added is an extra switch case.

theorlandog commented 5 months ago

Would love to see this added

voidranjer commented 3 months ago

A temporary duct tape solution would be to add the following line to the VSCode settings.json:

{
  "pasteImage.insertPattern": "![${imageFileNameWithoutExt}](${imageFilePath})"
}

This hard codes it so that the CMD+OPTION+V shortcut works on all files regardless of the file extension (and yes, that includes .mdx too!)

More formatting options: https://marketplace.visualstudio.com/items?itemName=mushan.vscode-paste-image