Markdown Editor - how to properly display content?
https://filamentphp.com/docs/3.x/forms/fields/markdown-editor
I am rewriting existing project, and wondering How do i show the value of $post->body markdown on 'front end' part?
1) Created a blog post using Filament markdown editor
2) Display a page on public site eg. /blog/how-to-display-makrdown
I get something like first image
So i tried to print it out with Str::markdown($post->body) but this brings not really nicely formatted output like image 2.
Desired output is like image 3
I am rewriting existing project, and wondering How do i show the value of $post->body markdown on 'front end' part?
1) Created a blog post using Filament markdown editor
2) Display a page on public site eg. /blog/how-to-display-makrdown
I get something like first image
So i tried to print it out with Str::markdown($post->body) but this brings not really nicely formatted output like image 2.
Desired output is like image 3



Solution
Third image uses a syntax highlighter which is no default markdown output. Search for one that fits you and add it to your project. This is not really related to Filament
