You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
1 year ago
..
actions Fix an actions schedule bug (#28942) 1 year ago
activitypub Upgrade to golangci-lint@v1.55.0 (#27756) 1 year ago
analyze Rename code_langauge.go to code_language.go (#26377) 2 years ago
assetfs Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 1 year ago
auth Unify user update methods (#28733) 1 year ago
avatar Remove nfnt/resize and oliamb/cutter (#25999) 2 years ago
base Refactor some legacy code and remove unused code (#28622) 1 year ago
cache Always enable caches (#28527) 1 year ago
charset Preserve BOM in web editor (#28935) 1 year ago
container Implement FSFE REUSE for golang files (#21840) 2 years ago
context Simplify how git repositories are opened (#28937) 1 year ago
contexttest Improve user experience for outdated comments (#29050) 1 year ago
csv Refactor locale number (#24134) 2 years ago
emoji Update emoji set to Unicode 15 (#25595) 2 years ago
eventsource Final round of `db.DefaultContext` refactor (#27587) 1 year ago
generate Handle base64 decoding correctly to avoid panic (#26483) 2 years ago
git Refactor parseSignatureFromCommitLine (#29054) 1 year ago
gitgraph More `db.DefaultContext` refactor (#27265) 1 year ago
gitrepo Simplify how git repositories are opened (#28937) 1 year ago
graceful Suggest to use Type=simple for systemd service (#28717) 1 year ago
hcaptcha Consume hcaptcha and pwn deps (#22610) 2 years ago
highlight Add option to disable ambiguous unicode characters detection (#28454) 1 year ago
hostmatcher Support allowed hosts for webhook to work with proxy (#27655) 1 year ago
html Refactor backend SVG package and add tests (#26335) 2 years ago
httpcache Also match weakly validated ETags (#28957) 1 year ago
httplib Less naked returns (#25713) 2 years ago
indexer fix: Elasticsearch: Request Entity Too Large #28117 (#29062) 1 year ago
issue/template Replace `interface{}` with `any` (#25686) 2 years ago
json Replace `interface{}` with `any` (#25686) 2 years ago
label Make label templates have consistent behavior and priority (#23749) 2 years ago
lfs Update tool dependencies (#29030) 1 year ago
log Reduce some allocations in type conversion (#26772) 1 year ago
markup Add alert blocks in markdown (#29121) 1 year ago
mcaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
metrics Reduce usage of `db.DefaultContext` (#27073) 1 year ago
migration Replace `interface{}` with `any` (#25686) 2 years ago
nosql Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
optional Unify user update methods (#28733) 1 year ago
options Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
packages Propagate install_if and provider_priority to APKINDEX (#28899) 1 year ago
paginator Use more specific test methods (#24265) 2 years ago
pprof Implement FSFE REUSE for golang files (#21840) 2 years ago
private Return `responseText` instead of string in some functions (#28836) 1 year ago
process Replace assert.Fail with assert.FailNow (#27578) 1 year ago
proxy Use proxy for pull mirror (#22771) 2 years ago
proxyprotocol Implement FSFE REUSE for golang files (#21840) 2 years ago
public Refactor CORS handler (#28587) 1 year ago
queue Increase queue length (#27555) 1 year ago
recaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
references Add support for sha256 repositories (#23894) 1 year ago
regexplru Upgrade go dependencies (#25819) 2 years ago
repository Fix bug for generated repository object format (#28969) 1 year ago
secret Improve decryption failure message (#24573) 2 years ago
session Next round of `db.DefaultContext` refactor (#27089) 1 year ago
setting Disallow duplicate storage paths (#26484) 1 year ago
sitemap Fix sitemap (#22272) 2 years ago
ssh Remove SSH workaround (#27893) 1 year ago
storage Fix object storage path handling (#27024) 1 year ago
structs Show whether a PR is WIP inside popups (#28975) 1 year ago
svg Refactor backend SVG package and add tests (#26335) 2 years ago
sync Implement FSFE REUSE for golang files (#21840) 2 years ago
system Replace more db.DefaultContext (#27628) 1 year ago
templates Fix default avatar image size in PR diff page (#28971) 1 year ago
test Move web/api context related testing function into a separate package (#26859) 1 year ago
testlogger Replace `interface{}` with `any` (#25686) 2 years ago
timeutil Make template `DateTime` show proper tooltip (#28677) 1 year ago
translation Replace `interface{}` with `any` (#25686) 2 years ago
turnstile Add new captcha: cloudflare turnstile (#22369) 2 years ago
typesniffer Detect ogg mime-type as audio or video (#26494) 2 years ago
updatechecker Replace more db.DefaultContext (#27628) 1 year ago
upload Implement FSFE REUSE for golang files (#21840) 2 years ago
uri Implement FSFE REUSE for golang files (#21840) 2 years ago
user Implement FSFE REUSE for golang files (#21840) 2 years ago
util Fix some RPM registry flaws (#28782) 1 year ago
validation Check blocklist for emails when adding them to account (#26812) 1 year ago
web Refactor CORS handler (#28587) 1 year ago
webhook Fix schedule tasks bugs (#28691) 1 year ago