ueberdosis / tiptap

The headless rich text editor framework for web artisans.
https://tiptap.dev
MIT License
27.55k stars 2.29k forks source link

[Bug]: Tables are not correctly converted to Markdown in TipTap #5750

Closed rossanodr closed 16 hours ago

rossanodr commented 3 weeks ago

Affected Packages

core, extension-table, react

Version(s)

"^2.8.0",

Bug Description

The issue occurs when trying to export a table created in the editor to Markdown. While the HTML output is correct, the corresponding Markdown output does not properly convert the table. Instead of generating Markdown table syntax, it only shows [table]. This makes it difficult to handle tables in Markdown format.

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

When a table is created in the editor, it should be converted to proper Markdown syntax (e.g., using pipes | for rows and columns) instead of showing [table].

Additional Context (Optional)

The HTML output for the table is correct, but the Markdown export does not include the table structure. This behavior makes it challenging to work with Markdown when tables are involved.

Dependency Updates

aldrinjenson commented 16 hours ago
nperez0111 commented 16 hours ago

Tiptap does not support markdown. So I'm not sure how it is you are even trying to generate markdown. Maybe you are using the tiptap-markdown extension which we don't support? https://github.com/aguingand/tiptap-markdown