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

🎆 Add inline property to images in paragraphs #641

Closed
wants to merge 1 commit into from

Conversation

fwkoch
Copy link
Collaborator

@fwkoch fwkoch commented Oct 9, 2023

For all images that are children of paragraph nodes, add inline: true property. This will happen when an image is declared inline, e.g.:

Here is my image ![](image.png) - it's inline!

(note: this works well with the myst-parser transform that ensures standalone images are not nested in paragraphs - https://github.com/executablebooks/mystmd/blob/main/packages/myst-parser/src/tokensToMyst.ts#L470)

@fwkoch
Copy link
Collaborator Author

fwkoch commented Oct 9, 2023

This PR along with jupyter-book/myst-theme#248 address #583

@fwkoch fwkoch requested a review from rowanc1 October 9, 2023 07:28
@fwkoch
Copy link
Collaborator Author

fwkoch commented Oct 12, 2023

We can likely just add this as a CSS rule in myst-theme without changing the myst data structure.

@fwkoch fwkoch closed this Oct 12, 2023
@rowanc1 rowanc1 deleted the feat/inline-images branch October 13, 2023 03:13
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.

1 participant