F
Filament15mo ago
rubendn

Markdown Editor Preview in V3?

Is there no longer a way to see a preview of the markdown using the Markdown Editor in V3? The docs still say "The markdown editor allows you to edit and preview markdown content, as well as upload images using drag and drop" but there is no preview button and don't see an option to enable it. Thanks.
5 Replies
awcodes
awcodes15mo ago
I could be wrong, but i think there's an issue with the underlying dependency and alpine at the moment. #peek is a really good preview plugin though.
Patrick Boivin
Patrick Boivin15mo ago
@rubendn Here's a very quick example of markdown/preview thing I did the other day using Peek:
No description
rubendn
rubendnOP15mo ago
Thanks @Patrick Boivin Do you mind sharing the code snippet to add the preview to the markdown editor?
Patrick Boivin
Patrick Boivin15mo ago
I've added a branch to my demo project: https://github.com/pboivin/filament-peek-demo/tree/wip/markdown You can try it locally:
git clone https://github.com/pboivin/filament-peek-demo --branch="wip/markdown"
git clone https://github.com/pboivin/filament-peek-demo --branch="wip/markdown"
Then follow the steps in the README, and check out the Page Resource.
rubendn
rubendnOP15mo ago
@Patrick Boivin Thank you.
Want results from more Discord servers?
Add your server