Skip to content

Fix image width not rendering in external_subsystems docs#1201

Open
hschilling wants to merge 1 commit into
OpenMDAO:mainfrom
hschilling:IA-width-of-images
Open

Fix image width not rendering in external_subsystems docs#1201
hschilling wants to merge 1 commit into
OpenMDAO:mainfrom
hschilling:IA-width-of-images

Conversation

@hschilling

Copy link
Copy Markdown
Member

Summary

The ![](image.png){width=75%} markdown syntax was being rendered as literal text in the built HTML docs. This syntax relies on the MyST attrs_inline extension, which does not actually support image attributes in MyST-Parser 3.x despite the extension name suggesting otherwise.

Fix: Replace all three markdown image references in external_subsystems.ipynb with the MyST {image} directive, which is natively supported without any extensions and correctly passes the width attribute through to the rendered HTML.

Related Issues

Backwards incompatibilities

None

New Dependencies

None

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.

Fix image width not rendering in external_subsystems docs

2 participants