Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested tables generate improper markdown #9475

Open
niegowski opened this issue Apr 14, 2021 · 2 comments
Open

Nested tables generate improper markdown #9475

niegowski opened this issue Apr 14, 2021 · 2 comments
Labels
package:markdown-gfm package:table type:bug This issue reports a buggy (incorrect) behavior.

Comments

@niegowski
Copy link
Contributor

📝 Provide detailed reproduction steps (if any)

  1. http://fake.ckeditor.com:8081/build/docs/ckeditor5/latest/features/markdown.html
  2. clone the table 
  3. select the cloned table (including some text around the table)
  4. drop/paste it into another table cell

✔️ Expected result

Proper table MD

❌ Actual result

MD is scrambled

📃 Other details

  • Browser: …
  • OS: …
  • First affected CKEditor version: …
  • Installed CKEditor plugins: …

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

@niegowski niegowski added type:bug This issue reports a buggy (incorrect) behavior. package:markdown-gfm package:table labels Apr 14, 2021
@AnnaTomanek
Copy link
Contributor

We already have a section called "Known issues" in the guide that explains cases like this. For previous features that were unsupported, we stripped the content from the data:

This means that advanced formatting like list styles, table styles or page break markers will be stripped in the effecting data. These are not supported by Markdown and therefore cannot be converted from HTML to Markdown.

The question is what should happen in this case.

@ctwhome
Copy link

ctwhome commented Feb 5, 2023

I was surprised to see that tables are rendered perfectly if they are written in markdown from the source code like in your own example, But if the table is generated from the live editor, it saves it as an HTML table:
https://ckeditor.com/ckeditor-5/demo/markdown/
image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:markdown-gfm package:table type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

3 participants