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

Markdown stability patch #7238

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

demshy
Copy link
Member

@demshy demshy commented Jun 27, 2024

Summary

Trying to address some of the reproducible bugs in current markdown editor. The ultimate plan is still to upgrade the editor to Plate and have high hopes that that will fix most of the problems, but in the meantime we can try to patch some of the most annoying ones.

First fix is for #7220 - where converting markdown without text (but newlines, breaks or spaces) would result in a slate root without paragraph node.

Second fix is for #7123 - a case where backspace in urls contained in lists breaks the editor

Test plan
#7220
Switch to markdown mode, add a space or a line break, switch back to richtext mode and hit shift+enter. The editor should no longer crash.

#7123
Create a bullet list with two items. In the second change some of the text to link. Then use backspace at the start of that link. The editor should not crash. Keep using backspace until the bullet is removed and the editor should also not crash then.

Checklist

Please add a x inside each checkbox:

A picture of a cute animal (not mandatory but encouraged)

@demshy demshy requested a review from a team as a code owner June 27, 2024 11:06
martinjagodic
martinjagodic previously approved these changes Jun 27, 2024
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.

None yet

2 participants