nhn / tui.editor

πŸžπŸ“ Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
http://ui.toast.com/tui-editor
MIT License
17.09k stars 1.73k forks source link

Back Slash (\) is Not Correctly Escaped in WYSIWYG Mode. #2546

Open gigawave07 opened 2 years ago

gigawave07 commented 2 years ago

Describe the bug

The Backslash is Not Escaped Correctly in WYSIWYG Mode.

To Reproduce

Steps to reproduce the behavior:

  1. Open the editor in here: https://ui.toast.com/tui-editor
  2. Switch to WYSIWYG mode.
  3. Type the following content: \\\\ (4 backslash)
  4. Switch to Markdown mode, the escaped text is: \\\\\\ (6 backslash), the display text in WYSIWYG mode is \\\ (3 backslash)
  5. Switch back to WYSIWYG mode, the input text become \\\ (3 backslash) With any amount of backslash greater than 2, this bug happens.

Expected behavior

Switch back and forth between 2 modes will keep the same amount of backslash: \\\\ (4 backslash)

Screenshots

image image image

upkey1010 commented 2 years ago

+1 I am having the same issue with this.

jajugoguma commented 2 years ago

@gigawave07 Thanks for reporting a bug. I'll fix it!

aranggitoar commented 2 years ago

Hello @jajugoguma!

Is there some progress on this?

I've encountered the same problem.

kitrio commented 1 year ago

μ—¬μ „νžˆ λ¬Έμ œλ„€μš” μœ„μ§€μ›λͺ¨λ“œμ—μ„œ λ§ˆλ“œλ‹€μš΄μ „ν™˜μ‹œ \κ°€ μΆ”κ°€λ©λ‹ˆλ‹€.