-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
HTML P tags are not handled correctly #285
Comments
Nesting paragraphs is certainly not correct, but I want to get the obvious question out first - what's the purpose of Apart from that, I can't reproduce a problem, but likely I'm missing something - what do you mean by "pasting"? |
The example is in the sandbox, the link does not work? "pasting" wrong word, sorry, I meant to simply add the initial value as HTML Preparing data from HTML to Markdown is probably the only solution in that case |
|
I opened the link, but then I'm not sure what I'm supposed to do there to trigger the error. I see no errors in the console, and I can type in the editor just fine. |
Try pressing "Enter" e.g. after "Lorem Ipsum" |
Got it. I will fix that at some point, probably a matter of handling the P paragraphs explicitly. But in general, you are still better off converting the HTML explicitly, given the whitespace specifics of the markdown. |
After pasting HTML as the default value, an error appears when trying to edit:
https://codesandbox.io/p/sandbox/mdx-editor-paste-html-ld5366?file=%2Fsrc%2FApp.tsx%3A20%2C21-20%2C29
something is with the parsing, because the
<p>
tag without attributes wraps the whole content or every tag<p>
is wraped by other<p>
without attributesThe text was updated successfully, but these errors were encountered: