sstur / draft-js-export-markdown

DraftJS: Export ContentState to Markdown
http://npm.im/draft-js-export-markdown
55 stars 23 forks source link

Num of spaces for nested list #17

Closed nguyenducbinh96 closed 7 years ago

nguyenducbinh96 commented 7 years ago

Hi Simon. Thank you so much for your lib.

I found 4spaces is required for a nested list as described in the specs http://markdown-guide.readthedocs.io/en/latest/basics.html#lists-nested

However, in line 103 and 120 of stateToMarkdown.js, only 2spaces are being used.

var indent = ' '.repeat(block.depth * 2);

sstur commented 7 years ago

Closed by #18.