mdx-editor / editor

A rich text editor React component for markdown
https://mdxeditor.dev
MIT License
1.63k stars 131 forks source link

[BUG] Sublists are created with 3 spaces #455

Closed kathriciya closed 2 months ago

kathriciya commented 2 months ago

Hey and thanks for the awesome library!

Nested lists are created with 3 spaces, while they should be created with 4 spaces (https://spec.commonmark.org/0.31.2/) Please fix it.

1 2

petyosi commented 2 months ago

There seems to be some argument around the right spacing over the internet.

However, you can control the spacing for the indentation through the toMarkdownOptions, which accepts this: https://github.com/syntax-tree/mdast-util-to-markdown#options.