Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MDX support #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thomaskoppelaar
Copy link

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 😄

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

@theorlandog
Copy link

Would love to see this added

@voidranjer
Copy link

voidranjer commented Apr 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants