Closed Doidel closed 5 years ago
Thank you for posting this! I'm using this method now and it works so well :)
I think more work needs to be done for this to be a viable option. E.g. the initial state of that pen doesn't render properly:
One of the problems is that quill's output doesn't capture all of its semantics in HTML. Quill renders the list above, for instance, as:
<ol>
<li>List Item 1</li>
<li class="ql-indent-1">Point a</li>
</ol>
I believe the semantic HTML would be:
<ol>
<li>List Item 1</li>
<ul>
<li type='a'>Point a</li>
</ul>
</ol>
There is more discussion of this issue in #979.
Given these challenges, could you please reopen this issue @Doidel?
I just wanted to share the solution I use for Quill with markdown. I've used a ton of different markdown editors and solutions (editor.md, tui editor, stackedit...) but then I found this codepen by a guy named "Lee Robert". Those top-notch markdown converters together with Quill work very smoothly. Basically, he uses the markdown-it library to render markdown to html, then pastes the result to Quill. And on saving he uses the to-markdown library to convert the
quill.container.firstChild.innerHTML
to markdown.