-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Markdown puts images in a paragraph. There is a plugin available that removes the paragraph if it only contains an image: https://github.com/rehypejs/rehype-unwrap-images
We would want to extend this to look for paragraphs that contain images + other content and then bumps the images out into separate paragraphs. This would hopefully let us strip the paragraph. We want to make these two options consistent:
This is the difference in Markdown:
I am a block level image:

I am an inline image: 
See implementation for rehype-unwrap-images here; we could probably fork this and modify it to do what we want:
https://github.com/rehypejs/rehype-unwrap-images/blob/main/lib/index.js
Metadata
Metadata
Assignees
Labels
PF6Applies to only the PF6 versionApplies to only the PF6 version
Type
Projects
Status
Done