Yoopta-Editor
Yoopta-Editor copied to clipboard
[BUG] components like Paragraph, Table, Codeblock etc does not respect the depth in markdown serialization
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
Do you want to work on this issue?
Yes
Upon further testing, I found that several other components are not being exported correctly with the depth rendered in the editor:
- Text
- Quote
- Table
- Divider
- Code block
The only components currently respecting depth are:
- Numbered List
- Bullet List
- To-do List
| Editor State | Markdown Serialized Output |
|---|---|