You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using https://github.com/markdown-it/markdown-it-deflist for definition lists.
After switching to WYSIWYG and then back to Markdown mode, necessary <br> tags are removed and in result definition list can't have multiple lines.
But it's not only about definition lists. Anywhere where I want to use <br> (e.g. inside <p></p> tags), it's not possible, because they are just removed from markdown after switching to WYSIWYG and then back to Markdown mode.
To Reproduce
Use this markdown:
### Definition lists (https://github.com/markdown-it/markdown-it-deflist)
Term 1
: Definition 1
with lazy continuation.<br>
Another line for this definition.
Switch to WYSIWYG mode
Switch back to Markdown mode
Expected behavior
<br> tag should not be removed.
Screenshots
Before switching to WYSIWYG
After switching to WYSIWYG and then back to Markdown
Environment:
Windows 10 64-bit
Google Chrome 83.0.4103.116
ToastUI editor 2.1.2, 2.2.0, 2.3.0
The text was updated successfully, but these errors were encountered:
mistris
changed the title
Necessary <br> tags are removed
Necessary <br> tags are removed
Jul 22, 2020
mistris
changed the title
Necessary <br> tags are removed
Necessary <br> tags are removed after switching to WYSIWYG and then back to Markdown mode
Jul 22, 2020
@mistris It is difficult to confirm this problem by looking at this alone. I think the code of the markdown-it parser you are using has changed the behavior of the Editor. The default behavior is retained when you switch from WYSIWYG to Markdown when <br> is remained in the paragraph. Could you share the example page with something like the CodePen?
Describe the bug
I'm using https://github.com/markdown-it/markdown-it-deflist for definition lists.
After switching to WYSIWYG and then back to Markdown mode, necessary
<br>
tags are removed and in result definition list can't have multiple lines.But it's not only about definition lists. Anywhere where I want to use
<br>
(e.g. inside<p></p>
tags), it's not possible, because they are just removed from markdown after switching to WYSIWYG and then back to Markdown mode.To Reproduce
Expected behavior
<br>
tag should not be removed.Screenshots
Before switching to WYSIWYG
After switching to WYSIWYG and then back to Markdown
Environment:
The text was updated successfully, but these errors were encountered: