Yoopta-Editor icon indicating copy to clipboard operation
Yoopta-Editor copied to clipboard

[BUG] components like Paragraph, Table, Codeblock etc does not respect the depth in markdown serialization

Open Waishnav opened this issue 6 months ago • 1 comments

Has this bug been raised before?

  • [x] I have checked "open" AND "closed" issues and this is not a duplicate

Description

When exporting content to Markdown, code blocks that are nested inside numbered or bulleted lists are not indented properly. According to standard Markdown syntax, nested blocks (like code blocks, blockquotes, etc.) inside list items must be indented with at least 4 spaces (or a tab) to maintain their correct hierarchy and render properly. However, in the current export, these nested code blocks are being output as if they were top-level blocks, breaking the structure.

Screenshots

Image

Do you want to work on this issue?

Yes

Waishnav avatar Jun 01 '25 13:06 Waishnav

Upon further testing, I found that several other components are not being exported correctly with the depth rendered in the editor:

  1. Text
  2. Quote
  3. Table
  4. Divider
  5. Code block

The only components currently respecting depth are:

  1. Numbered List
  2. Bullet List
  3. To-do List
Editor State Markdown Serialized Output
Image Image

Waishnav avatar Jun 29 '25 18:06 Waishnav