#How to do a line break in MDX?
3 messages · Page 1 of 1 (latest)
Astro, like other HTML-based languages, supports the <br> tag for creating line breaks in text. This tag can be used directly in your Astro components or pages. Here's an example:
<p>This is some text.<br>And this is a new line.</p>
This will render as:
This is some text.
And this is a new line.
Remember, the <br> tag in HTML is self-closing, so you don't need to add a closing </br> tag.
For more information on how to use HTML in Astro, you can refer to the Astro Documentation (https://docs.astro.build).
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@uneven fjord kapa.ai is still learning and improving, please let us know how it did by reacting below