memspace / zefyr

Soft and gentle rich text editing for Flutter applications.
https://zefyr-editor.gitbook.io
2.22k stars 551 forks source link

Converting markdown to notus #116

Open Jethro87 opened 5 years ago

Jethro87 commented 5 years ago

Hi there. I'm new to Zefyr and trying to wrap my head around it.

Currently, I have a web app with a rich text editor (Quill) that saves the output in markdown. I'm hoping to make this markdown Zefyr-compatible for use in my Flutter app. I would also like to output Zefyr's changes to markdown as well.

Would you point me in the right direction? Is this possible? Thanks.

Jethro87 commented 5 years ago

I found notus.convert. Good stuff! Any timeline as to when decoding will be implemented? This functionality is exactly what I was looking for. Thanks.

flschlosser commented 5 years ago

Hello everybody, any updates on that? Facing the same issue. If you know when it will be implemented or any workarounds, please let me know.

lucasjinreal commented 5 years ago

I am also wanna convert makrdown to notus.Document object. I have markdowns with raw markdown from web (github or my webserver). This is really very basic usage.

joeblew99 commented 5 years ago

@pulyaevskiy I want to convert from quill to PDF, so i can print zefyr documents.

Here is the lib most are using: https://github.com/DavBfr/dart_pdf/tree/master/pdf Its pure Dart with no reliance on platform so it will work in Flutter Web also. There is an example. I saw that zefyr running on Flutter Web looks like there are no technical boundaries. So this is doable !!

I see there is '''_NotusMarkdownEncoder ''', which converts from quill delta to markdown. SO probably easiest to do a Markdown to PDF.

nalbion commented 4 years ago

PR: https://github.com/memspace/zefyr/pull/191