kadikraman / draftjs-md-converter

Converts content from Draft.js blocks to Markdown and vice versa.
https://kadikraman.github.io/draftjs-md-converter/
MIT License
145 stars 37 forks source link

Support Nested Lists #40

Open thejuan opened 6 years ago

thejuan commented 6 years ago

Tabing list items allows for nesting, but it isnt added to the markdown

kadikraman commented 6 years ago

I'm not 100% sure what you mean. Could you give me an example in markdown?

thejuan commented 6 years ago

Examples of nested lists in markdown here. https://commonmark.org/help/tutorial/10-nestedLists.html

bw commented 5 years ago

+1 on this -- this is extremely important to us and I believe it's part of the Markdown spec. Let me know if there's anything I can do to help.

kadikraman commented 5 years ago

@bw I've got 100% test coverage, so I think we could make it work if I get an accurate test written.

Would you be able to give me the JSON schema of the draftJS blocks in the editor state that result in a nested list as described?

const content = this.state.editorState.getCurrentContent();
console.log(convertToRaw(content));

Have a look at the tests to get an idea of what I'm looking for.

caribouflex commented 3 years ago

This is a pretty old thread but is there any news on this ?

grantlonie commented 3 years ago

Any update on this?