Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sampang's avatar

Markdown vs html

Hello folks, I am planning to make some kind of blogging application . Which one should i use to store the blog contents ? markdown or html ? While doing it do i need any kind of parser or not ? If needed then suggest me some of them .

0 likes
11 replies
Niush's avatar

It depends. If you want simple texts, images, links and lists. Markdown is enough.

But, if you want to Embed Iframes (e.g. CodePen), have dynamic layout etc. you will need HTML.

If you mean Purifier/Sanitizer. Yes it is important. https://github.com/stevebauman/purify

1 like
Sinnbeck's avatar

Is this for a personal blog or a blog platform with other users?

Sinnbeck's avatar

@sampang be aware that it's really simple. No interface for adding posts etc as I am the only user. I just write the markdown files directly

kokoshneta's avatar

If you use Markdown, then you will obviously need a parser, yes – that’s how Markdown works. You write Markdown, the parser turns it into HTML. Without a parser, you’ll just see a bunch of unformatted code-like text on the page.

1 like

Please or to participate in this conversation.