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

Unwrap images in rx.markdown #2789

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Unwrap images in rx.markdown #2789

merged 1 commit into from
Mar 7, 2024

Conversation

picklelo
Copy link
Contributor

@picklelo picklelo commented Mar 5, 2024

Uses https://www.npmjs.com/package/remark-unwrap-images to unwrap images from div tags. This is needed if you want to use a custom image component in your rx.markdown, otherwise NextJS throws an error about nesting a <p> tag within an <img>

@picklelo picklelo merged commit c61419a into main Mar 7, 2024
45 checks passed
mahrz24 pushed a commit to mahrz24/reflex that referenced this pull request Mar 12, 2024
@masenf masenf deleted the nikhil/markdown-image branch April 24, 2024 18:48
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.

3 participants