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

Automatically convert images to new format #934

Open
MashaMSFT opened this issue Apr 17, 2023 · 0 comments
Open

Automatically convert images to new format #934

MashaMSFT opened this issue Apr 17, 2023 · 0 comments

Comments

@MashaMSFT
Copy link

It'd be cool if, as a right-click menu option, we could easily convert all images on a doc to the new format.

Like, in this menu:
image

Add a "convert images to new format" option, which essentially, runs this regex:

#Find images in Markdown format like ![ ]( )
!\[(.+)\]\((.+)\)

#Replace with new format
:::image type="content" source="$2" alt-text="$1":::

more info here: https://review.learn.microsoft.com/en-us/help/contribute/contribute-how-to-create-screenshot?branch=main#converting-from-standard-image-syntax-to-learn-image-syntax

thanks!

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

No branches or pull requests

1 participant