Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub Markdown Warning and Note all on one line

When I am editing my README.md files in a GitHub repo I am trying to add Warnings and/or Notes using this format:

> **Note**
> This is a note

> **Warning**
> This is a warning

As recommended here:

https://github.com/community/community/discussions/16925

However, it appears like this:

Warning example

All the text is on one line.

Anyone know why this is happening? Thanks!

like image 758
Adam Avatar asked Apr 17 '26 15:04

Adam


1 Answers

GitHub has updated this Alert feature and you can now use the following instead:

> [!NOTE]
> This is a note

It's not necessary to leave spaces after [!NOTE].

Source: Basic writing and formatting syntax - Alerts

like image 127
Michael Aicher Avatar answered Apr 20 '26 04:04

Michael Aicher



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!