nhn / tui.editor

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

Lists in tables are generated as HTML #2836

Open Malaber opened 2 years ago

Malaber commented 2 years ago

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Go to TUI Editor Demo
  2. Switch to WYSIWYG Mode
  3. Clear the editor of all content
  4. Add a table
  5. Add a list inside of that table
  6. Switch to Markdown mode
  7. There are html <li> elements within the markdown table

Expected behavior

  1. There are markdown list elements in the markdown table

Demo Video

TUI Editor bug li in table

Desktop:

(This was tested on multiple machines here in the office and everyone had the problem, so it is probably not browser/OS specific)

jwlee1108 commented 1 year ago

Thank you for the issue. The TOAST UI Editor is a markdown editor, but sometimes HTML elements are used for compatibility with WYSIWYG.

It is related to this.

markusbrunner-design commented 1 year ago

TOAST UI should render Markdown and not html in my opinion... otherwise it's no markdown-editor and no html-editor - just nothing of both worlds correctly.

MoritzGiessmann commented 1 year ago

The TOAST UI Editor is a markdown editor, but sometimes HTML elements are used for compatibility with WYSIWYG.

Is it markdown or is it HTML? It canโ€™t be both, IMHO.