Markdown

Markdown lets you write markdown in .astro files. If you’re an avid markdown user, you’ll love this component.


Use Markdown directly in Astro files

No need to manually add <p> tags or convert apostrophes into quotes. Markdown does this for you automatically.

<Markdown>Don't worry, be happy!</Markdown>

Include paragraphs too

Markdown supports the standard Markdown syntax you expect.

If you write Markdown content with a new line between paragaphs, you will get <p> tags along with the bells and whistles you added.

<Markdown>
## This is my heading
And this is a paragraph with some **bold** text and *italics*.
</Markdown>

No indentation woes

Your content won’t be converted into <pre> tags even if you indent 4 spaces or more. Just make sure they start with the same indentation!

<Markdown>
## This is my heading
And this is a paragraph with some **bold** text and *italics*.
</Markdown>