Home > other >  How Can I get HTML From Flutter Quill(flutter_quill) with underline
How Can I get HTML From Flutter Quill(flutter_quill) with underline

Time:11-11

I'm trying to convert Quill Delta to HTML. So I can upload it to my server. anyone help me how can I get Html from Quill

I have used delta to markdown and then markdown to html. but I have underline so it not help me.

CodePudding user response:

Recently I have fixed this issue. as per your Delta to Markdown and markdown to html not working because markdown not supported underline yet. so you have to convert delta to html directly.

You can use this library

then try below code. This bill give you html output.

List deltaJson = quillController.document.toDelta().toJson();

print(DeltaToHTML.encodeJson(deltaJson));
  • Related