Ckeditor5: Markdown plugin doesn't recognize a basic table

Created on 3 Dec 2020  ·  1Comment  ·  Source: ckeditor/ckeditor5

📝 Provide detailed reproduction steps (if any)

  1. Go to https://ckeditor.com/docs/ckeditor5/latest/features/markdown.html.
  2. Call
editor.setData(`
    <p>test</p>
    <table>
        <tbody>
            <tr>
                <td>test</td>
                <td>test;</td>
                <td>nbsp;</td>
            </tr>
            <tr>
                <td>nbsp;</td>
                <td>nbsp;</td>
                <td>nbsp;</td>
            </tr>
            <tr>
                <td>nbsp;</td>
                <td>nbsp;</td>
                <td>nbsp;</td>
            </tr>
        </tbody>
    </table>
`)

✔️ Expected result

The table outputs as markdown.

❌ Actual result

The table outputs as HTML.

📃 Other details

This is interesting, as adding <thead> to the markup results in proper markdown output. 


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

markdown-gfm invalid ux bug

Most helpful comment

It works fine. But you must not have indentation at the beginning of that HTML because it makes the MD parser to recognize this a as code snippet.

This worked:

This indeed didn't:

>All comments

It works fine. But you must not have indentation at the beginning of that HTML because it makes the MD parser to recognize this a as code snippet.

This worked:

This indeed didn't:

Was this page helpful?
0 / 5 - 0 ratings