-
Notifications
You must be signed in to change notification settings - Fork 132
Description
I'm seeing an issue distinct from #457 but also to do with bold and newlines. It's not clear to me if it's fixed in jywarren/woofmark#1, but we can probably test in GitPod there.
What happens is that if (in rich text) we make 2 new lines after bolding a line, then type, it's bold (which is OK, although we could change that if it makes a solution easier). Then, if we unbold the text on the 2nd new line, and keep typing, things seem normal... but in fact there is a double ** left on 2 consecutive lines due to the remaining "bolded" newline (which has no text on it). This the causes ** to appear in markdown mode when we switch to it, and on switching back to rich text, triggers a formatting error:
What I think we should do is filter out newlines that contain only formatting and no content (or only whitespace). We could do this upon switching modes between rich and markdown.
We could also try writing a test for this behavior, in:
