Open atsepkov opened 8 years ago
Here's what it looks like.
This appears to be a bug with CodeMirror, which does the Markdown parsing while editing.
You'll probably want to submit an issue in their repo: https://github.com/codemirror/CodeMirror.
I'm confused, could I get a little more detail? I'm still new to simpleMDE and trying to understand how it works. I understand that your editor is built on top of CodeMirror but what is it in their code that forces this bug on simpleMDE? Are you leveraging their syntax highlighter for markdown and overriding the stylesheet?
SimpleMDE mostly adds the toolbar and some configuration. CodeMirror implements the main markdown formatting. The issue is here, including a workaround: https://github.com/codemirror/CodeMirror/issues/2143
Thanks @brondsem , that worked. @WesCossick , I would recommend that this workaround be merged into SimpleMDE, because in the context of CodeMirror it could be argued that it's not a bug, since visually it's still clear that it's a title. But in SimpleMDE, where the size grows, this does manifest as a bug.
I'll look into implementing the workaround. Thanks @brondsem.
In markdown, the following are equivalent:
But in simpleMDE the underline only turns itself into a title, not the line before.