bevacqua / woofmark

:dog2: Barking up the DOM tree. A modular, progressive, and beautiful Markdown and HTML editor
https://bevacqua.github.io/woofmark
MIT License
1.62k stars 74 forks source link

Switching between WYSIWYG and Markdown mode breaks formating #54

Open ItsT-Mo opened 7 years ago

ItsT-Mo commented 7 years ago

Hey, I found some bugs with the markdown mode.

Bug 1

When marking text as bold in WYSIWYG Mode and then line breaking after it, the text gets rendered correctly. But when switching to markdown mode and back, the text formatting breaks and the * are shown and the text isn't rendered correctly anymore. (In our implementation you can see the * are escaped with \)

Bug 2

When marking text as bold in WYSIWYG mode and then adding text behind it and marking it as regular text, the rendering breaks when switching to markdown mode and back to WYSIWYG mode.

jywarren commented 6 years ago

Hi, can you offer a string that can be pasted into the demo code for confirmation of this bug? Thanks!