-
Notifications
You must be signed in to change notification settings - Fork 334
Migrate {image} to ![]() #1978
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
Migrate {image} to ![]() #1978
Conversation
@psonnera Anton wants to correct the Sphinx syntax to markdown syntax. What do you think shall we merge now or wait for our test with image sizes which need the Sphinx syntax? |
@peterleimbach as Markdown doesn't allow image sizing, we might get some using full frame width if they were captured with more than the recommended format. Still, this shouldn't be an issue for phone browsers and even if computer users will have some big ones we probably can review them later. @anbraten script migration sounds like a good idea. We will resume and implement the final image size later. |
Seems like its possible to set custom image sizes with myst using markdown as well: Using standard markdown sytanx wherever possible will porbably bring the most flexibility in editors / frameworks in the long term. |
@anbraten yes, we just need @peterleimbach to confirm it is portable into Crowdin |
Will also have a look at crowdin again and test it as well. I've created a test crowdin project with the translation to tryout some things recently, as I also wanted to help improving the general experience for translators. |
@anbraten Sphinx doesn't seem to accept the syntax. I now remember I moved all to html syntax in Nightscout after migrating from MkDocs because of this bug. |
@anbraten my bad, needed to add a piece https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#syntax-attributes-inline |
@psonnera I've added the extension and migrated all images again. While checking I however actually noticed that scaled images are currently only used in |
@anbraten Thank you. |
closes #1501
The script I've used to migrate