Skip to content

Fixed showing images in the Pairing tutorial #78

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

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

melissawm
Copy link
Member

I discovered by accident that the animated gifs in the pairing tutorial were not showing properly. After some experimentation it appears that if we use html syntax for images, the site is not build correctly - the path for the images ends up wrong. But if we change it to markdown syntax, all works well. So unless we know a fix, I'm suggesting we remove the nice folding html tag for now.

Copy link
Collaborator

@rossbar rossbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an option for the myst parser to enable raw html images: you can add "html_image" to the myst_enable_extensions list in conf.py. Unfortunately AIUI the myst-parser does not currently pass through raw html images that are within other html elements, so this option wouldn't help here.

There are however other options to achieve similar behavior with MyST itself - see the suggestion below. Either way, I'm +1 on getting rid of the raw html and happy to replace it with either option.

Co-authored-by: Ross Barnowski <[email protected]>
@melissawm melissawm merged commit aca4493 into numpy:main Apr 29, 2021
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.

2 participants