It works the same as Paste Image does. What I focus on is to make it work well on WSL and Windows and to use ctrl + v to paste images instead of ctrl + alt + v.
paste anywhere if you want.
Features
use ctrl + v to paste images from the clipboard when writing markdown.
sometimes Github Copilot will suggest a good image name, so it's very nice to support to create an image read from clipboard (or an empty image if no image contained in clipboard) with the name suggested by Github Copilot
support typst
support defining render pattern according to the file type (minimatch)
Extension Settings
mdPasteEnhanced.path:string
The destination to save image file.
default: ${currentFileDir}/assets
You can use variable:
${currentFileDir}: the path of directory that contain current editing file.
${projectRoot}: the path of the project opened in vscode.
${currentFileName}: the name of current editing file.
${currentFileNameWithoutExt}: the name of current editing file without extension.
The plugin Markdown All in One will block the function that you paste image when selecting text. It's better to remove the condition that triggers paste ctrl+v in the shortcut settings of Markdown All in One. Don't worry, this plugin will call the paste function of Markdown All in One. I just think it's a bit of a hassle, why they can't work together without realizing the exsistence of each other.