Skip to content

Instantly share code, notes, and snippets.

@tribal2
Created April 28, 2020 03:40
Show Gist options
  • Save tribal2/066a3a1ce0b457991ffc891525fc33e6 to your computer and use it in GitHub Desktop.
Save tribal2/066a3a1ce0b457991ffc891525fc33e6 to your computer and use it in GitHub Desktop.
Regex for replacing markdown images with <img> HTML tags in Visual Studio Code (VSCode)
Regex: !\[(.*)\]\(\/img\/(.*)\)
Replace: <img alt="$1" src={useBaseUrl('img/$2')} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment