0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 21:04:40 +01:00
gitea/web_src/css
Yarden Shoham 12865ae9c6
Add alert blocks in markdown (#29121)
- Follows https://github.com/go-gitea/gitea/pull/21711
- Closes https://github.com/go-gitea/gitea/issues/28316

Implement GitHub's alert blocks markdown feature

Docs:
-
https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts
- https://github.com/orgs/community/discussions/16925

### Before

![image](https://github.com/go-gitea/gitea/assets/20454870/14f7b02a-5de5-4fd0-8437-a055dadb31f2)

### After

![image](https://github.com/go-gitea/gitea/assets/20454870/ed06a869-e545-42f1-bf25-4ba20b1be196)

## ⚠️ BREAKING ⚠️

The old syntax no longer works

How to migrate:

If you used
```md
> **Note** My note
```

Switch to
```md
> [!NOTE]
> My note
```

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io>
2024-02-10 18:43:09 +00:00
..
chroma
codemirror
editor
features
markup Make blockquote border size less aggressive (#29124) 2024-02-10 14:55:46 +02:00
modules Make loading animation less aggressive (#28955) 2024-01-27 20:27:37 +08:00
repo Revamp repo header (#27760) 2024-01-12 03:44:06 +00:00
shared Reduce margin/padding on flex-list items and divider (#27872) 2023-11-02 12:30:38 +08:00
standalone
themes Rename the default themes to gitea-light, gitea-dark, gitea-auto (#27419) 2023-10-06 09:46:36 +02:00
actions.css
admin.css
base.css Add alert blocks in markdown (#29121) 2024-02-10 18:43:09 +00:00
dashboard.css
explore.css
font_i18n.css
form.css
helpers.css Improve CSS helper naming (#28769) 2024-01-12 20:28:01 +08:00
home.css
index.css Revamp repo header (#27760) 2024-01-12 03:44:06 +00:00
install.css
org.css Add word-break to organization name and description (#26624) 2023-10-25 10:40:39 +00:00
repo.css Remove obsolete border-radius on comment content (#29128) 2024-02-10 20:18:46 +02:00
review.css Don't reload timeline page when (un)resolving or replying conversation (#28654) 2024-01-24 03:26:28 +00:00
user.css