We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
When using markdownToBlocks the markdown indentation does not get reflected in the block "children" logic.
markdownToBlocks
Example:
The following block:
[ { "id": "ef853295-efd9-4511-ac0d-c45fe3b35310", "type": "bulletListItem", "props": { "textColor": "default", "backgroundColor": "default", "textAlignment": "left" }, "content": [ { "type": "text", "text": "Bullet point", "styles": {} } ], "children": [ { "id": "7d4ca371-4642-4d23-a176-0f39d31b6745", "type": "bulletListItem", "props": { "textColor": "default", "backgroundColor": "default", "textAlignment": "left" }, "content": [ { "type": "text", "text": "Nested bullet point", "styles": {} } ], "children": [] } ] }, ]
When passed through the blocksToMarkdown function returns correctly the following markdown:
blocksToMarkdown
* Bullet point * Nested bullet point
However when trying to convert the markdown above back to blocks using markdownToBlocks function, it returns the following object:
[ { "id": "d781e08d-6d5a-4107-9c5a-f1271e2343c2", "type": "bulletListItem", "props": { "textColor": "default", "backgroundColor": "default", "textAlignment": "left" }, "content": [ { "type": "text", "text": "Bullet point", "styles": {} } ], "children": [] }, { "id": "cd4962df-a040-46ae-9f4d-3b2480311ef7", "type": "bulletListItem", "props": { "textColor": "default", "backgroundColor": "default", "textAlignment": "left" }, "content": [ { "type": "text", "text": "Nested bullet point", "styles": {} } ], "children": [] } ]
The text was updated successfully, but these errors were encountered:
matthewlipski
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
When using
markdownToBlocks
the markdown indentation does not get reflected in the block "children" logic.Example:
The following block:
When passed through the
blocksToMarkdown
function returns correctly the following markdown:However when trying to convert the markdown above back to blocks using
markdownToBlocks
function, it returns the following object:The text was updated successfully, but these errors were encountered: