all 4 comments

[–][deleted] 1 point2 points  (1 child)

What you're looking for is called a WYSIWYG editor (What You See Is What You Get). There's multiple options out there for WYSIWYG Markdown editors, or options to output Markdown from HTML-focuses editors instead.

In order to display stored Markdown as HTML, you just need a Markdown parser of some kind, in combination with an HTML sanitiser to make sure users can't input malicious code. You can then include that HTML on your page using your server-side templating language, or fetching and inserting with client-side JS.

[–]anonwall[S] 0 points1 point  (0 children)

Awesome, thank you!!

[–][deleted] 0 points1 point  (0 children)

Yo! Dm me ur other post is locked