You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under Sphinx/Jupyter Book 1, using left or right alignment on an image or figure causes it to float so that text can flow around it. e.g. this source which comes out like this.
Using a simpler example:
```{image} https://github.com/rowanc1/pics/blob/main/grapes-wide.png?raw=true
:alt: Grapes on a vineyard
:width: 500px
:align: right
```
test
The current version of MystMD (v1.3.18) appears to generate markup that sets margins so the item pushes to the the right, but it does not float it.
Proposed solution
Use float for left/right alignment as under Sphinx rather than by setting margins.
Additional notes
❯ myst -v
v1.3.18
The text was updated successfully, but these errors were encountered:
choldgraf
changed the title
Image/figure directive align behaviour inconsistent with Sphinx/JupyterBook 1
Image/figure directive align behaviour does not let text float / flow around it
Nov 21, 2024
Description
Under Sphinx/Jupyter Book 1, using left or right alignment on an image or figure causes it to float so that text can flow around it. e.g. this source which comes out like this.
Using a simpler example:
The current version of MystMD (v1.3.18) appears to generate markup that sets margins so the item pushes to the the right, but it does not float it.
Proposed solution
Use float for left/right alignment as under Sphinx rather than by setting margins.
Additional notes
The text was updated successfully, but these errors were encountered: