1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-04 04:05:33 -04:00
gitea/modules
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
..
actions Fix an actions schedule bug (#28942) 2024-01-31 14:55:12 +00:00
activitypub
analyze
assetfs
auth Unify user update methods (#28733) 2024-02-04 13:29:09 +00:00
avatar
base
cache
charset Preserve BOM in web editor (#28935) 2024-01-27 18:02:51 +00:00
container
context Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
contexttest Improve user experience for outdated comments (#29050) 2024-02-08 01:50:48 +00:00
csv
emoji
eventsource
generate
git Refactor parseSignatureFromCommitLine (#29054) 2024-02-09 11:02:53 +08:00
gitgraph
gitrepo Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
graceful
hcaptcha
highlight
hostmatcher
html
httpcache Also match weakly validated ETags (#28957) 2024-01-29 16:18:40 +00:00
httplib
indexer fix: Elasticsearch: Request Entity Too Large #28117 (#29062) 2024-02-07 08:57:16 +00:00
issue/template
json
label
lfs Update tool dependencies (#29030) 2024-02-02 19:11:39 -05:00
log
markup Add alert blocks in markdown (#29121) 2024-02-10 18:43:09 +00:00
mcaptcha
metrics
migration
nosql
optional Unify user update methods (#28733) 2024-02-04 13:29:09 +00:00
options
packages Propagate install_if and provider_priority to APKINDEX (#28899) 2024-02-05 05:52:56 +00:00
paginator
pprof
private Return responseText instead of string in some functions (#28836) 2024-01-19 10:45:23 +08:00
process
proxy
proxyprotocol
public
queue
recaptcha
references Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
regexplru
repository Fix bug for generated repository object format (#28969) 2024-01-28 20:18:15 +00:00
secret
session
setting Disallow duplicate storage paths (#26484) 2024-02-09 14:06:03 +00:00
sitemap
ssh
storage
structs Show whether a PR is WIP inside popups (#28975) 2024-02-04 22:37:45 +00:00
svg
sync
system
templates Fix default avatar image size in PR diff page (#28971) 2024-02-02 10:01:11 +00:00
test
testlogger
timeutil
translation
turnstile
typesniffer
updatechecker
upload
uri
user
util Fix some RPM registry flaws (#28782) 2024-01-19 11:37:10 +00:00
validation
web
webhook Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00