Converts a html to Document.
Document htmlToDocument(String html) { return const AppFlowyEditorHTMLCodec().decode(html); }