-
Notifications
You must be signed in to change notification settings - Fork 59
Closed
Labels
bugSomething isn't workingSomething isn't workingcommonmarkRelates to commonmark round-tripping or syntaxRelates to commonmark round-tripping or syntax
Description
Describe the bug
Within list items, # at the start of the text needs to be escaped to not turn the text into a heading. We can escape that by writing \#, but flipping between rich text and markdown removes the backslash, making the text within the list item a heading again.
To Reproduce
Steps to reproduce the behavior:
-
Switch to Markdown mode and paste:
\# test - \# test \# test
-
Flip to rich text mode, see that
#is shown as expected -
Flip to Markdown mode, see that
#is no longer escaped -
Flip to rich text mode, see that the text is now a
<h1>heading
Expected behavior
The editor should keep the needed backslash escape on the # character so that it doesn't turn the text into a heading.
Desktop (please complete the following information):
- OS: Windows
- Browser: Firefox
- Version: 107.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcommonmarkRelates to commonmark round-tripping or syntaxRelates to commonmark round-tripping or syntax
Type
Projects
Status
Done


