-
-
Notifications
You must be signed in to change notification settings - Fork 866
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
p component overriding img component #813
Comments
Welcome @mdroidian! CommonMark, the markdown standard this project follows wraps images in paragraph tags. Either account for this in your styles. |
This comment has been minimized.
This comment has been minimized.
Hi! Thanks for reaching out! Because we treat issues as our backlog, we close issues that are questions since they don’t represent a task to be completed. See our support docs for how and where to ask questions. Thanks, |
@ChristianMurphy Thanks for the quick reply! 🙌 I'll give it a go tomorrow. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@vasco3 that is unrelated to the question here. |
Initial checklist
Affected packages and versions
"react-markdown": "^9.0.1", "remark-gfm": "^4.0.0"
Link to runnable example
No response
Steps to reproduce
minimal vite app with react-pdf
pass content to
node: v18.17.0
npm: 9.6.7
Expected behavior
Images adhere to
objectFit: "contain"
Text is rendered
Actual behavior
Images are all tiny
If I remove the
p
component, images adhere toobjectFit: "contain"
, but no text is shownI am curious as to why this is the case.
How can I have images adhere to
img
and notp
Runtime
Other (please specify in steps to reproduce)
Package manager
Other (please specify in steps to reproduce)
OS
Windows
Build and bundle tools
Vite
The text was updated successfully, but these errors were encountered: