ckeditor / github-writer

GitHub Writer - WYSIWYG Rich-Text Editor for GitHub, powered by CKEditor.
https://ckeditor.com/
Other
380 stars 61 forks source link

Tables with code blocks generates incorrect Markdown #328

Open Comandeer opened 2 years ago

Comandeer commented 2 years ago

📝 Provide detailed reproduction steps (if any)

  1. Insert a table inside the editor.
  2. Insert a code block into one of the table cells.
  3. Save the comment.

✔️ Expected result

The nice table with code inside is rendered.

❌ Actual result

Only the first row of the table is rendered correctly:

The first row of the table contains two cells with column names and instead of the second row there is just a paragraph with the first cell's content and code block separated from it.

The generated markup looks like the below one:

| Feature | Markup |
| --- | --- |
| Sample feature | 
```html
<button>Nice button</button>
\```

 |

❓ Possible solution

Probably HTML code should be rendered instead of Markdown one for rich content tables.

📃 Other details


If you'd like to see this fixed sooner, add a 👍 reaction to this post.