The parsing of the markdown is done in the frontend itself. So only markdown goes from server to client, but the javascript converts everything. Because of this you can also edit it without doing a request ;)
Aug 15, 2019
4
Level 2
How edit a reply fills Markdown in Laracasts forum model
I wanted to know how the edited reply is implemented. What I think it stores body in markdown and it's converted to HTML when requested by view.
But when you click on edit reply it doesn't make any ajax request to get the reply markdown to prefill the textarea.
Does anyone know how it's done? Is @JeffreyWay using some frontend HTML to markdown converter?
Level 59
@erikverbeek is correct. The Markdown conversion is done on the server-side. I use the CommonMark Composer package.
Please or to participate in this conversation.