appflowy-editor icon indicating copy to clipboard operation
appflowy-editor copied to clipboard

Is there an available/recommended way to present read-only views of markdown?

Open csuwildcat opened this issue 11 months ago • 4 comments

I have already integrated the editor into a project to allow markdown entry of text, but I am wondering if there exist in the package methods or conventions for using the same renderer the editor uses to then display the same visual output when viewing in a read-only state? Is this a lib method one can call with a rich text widget as a target, or some other thing I can/should do when rendering views with markdown text?

csuwildcat avatar Dec 19 '24 21:12 csuwildcat

Hi, @csuwildcat. Is this what you want?

Screenshot 2024-12-20 at 10 13 44

LucasXu0 avatar Dec 20 '24 02:12 LucasXu0

If you're referring to the left panel being a read only output, yeah, basically, just looking for the best way to use the lib to simply render a markdown text to a static element, not editable or modifiable, just the view output of the render.

csuwildcat avatar Dec 20 '24 03:12 csuwildcat

Is there either a utility method or config value for instances of the editor to take in a source and just render the markdown without making it an active editor?

csuwildcat avatar Dec 27 '24 17:12 csuwildcat

I see here you replied to someone alluding to an editable feature that can been flagged off: https://github.com/AppFlowy-IO/appflowy-editor/issues/814#issuecomment-2535924519

How does this work?

csuwildcat avatar Dec 27 '24 19:12 csuwildcat