Closed marekdedic closed 1 year ago
Why do you believe image can be there? And text can't?
Yes: the entire project produces "invalid" ASTs. Images are not supposed to be next to paragraphs.
This project is very old. It's probably better to make a rehype version of this and depreciate it.
Hmm, that's actually an excellent point, thanks. I solve the issue by not using this plugin at all :D
Hi! This was closed. Team: If this was fixed, please add phase/solved
. Otherwise, please add one of the no/*
labels.
Hi team! Could you describe why this has been marked as wontfix?
Thanks, — bb
Initial checklist
Affected packages and versions
3.0.1
Link to runnable example
No response
Steps to reproduce
I would link a codesandbox, but I couldn't figure out how to actually run the code I put in - there is no "run" button anywhere :shrug:
Expected behavior
The AST should be something like
or
Actual behavior
The ASP look like
i.e., it places
Text
directly inRoot
, which is prohibited inmdast
as per the content modelRuntime
Other (please specify in steps to reproduce)
Package manager
npm 8
OS
Linux
Build and bundle tools
Webpack