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 b5c418f271
Don't use `<br />` in alert block (#29650)
- Follows https://github.com/go-gitea/gitea/pull/29121

When I implemented alert blocks I was always testing the markdown in
issue comments. I used `<br />` for line breaks and it looked good. I
have since learned that the markdown on README files doesn't allow these
tags. So a comment with

```md
> [!NOTE]
> If you're interested in using our APIs, we have experimental support with [documentation](https://try.gitea.io/api/swagger).
```

looked like this in a comment

![image](https://github.com/go-gitea/gitea/assets/20454870/96b1de01-2c87-4d4f-83dd-98192b83e9d0)
but looked like this in a README

![image](https://github.com/go-gitea/gitea/assets/20454870/474b636d-dd7a-4b7f-ba27-643803c71aa3)

So I changed how we render the alert block by having the alert itself
have a dedicated paragraph, so line breaks happen naturally between
paragraphs.

# Before

![image](https://github.com/go-gitea/gitea/assets/20454870/474b636d-dd7a-4b7f-ba27-643803c71aa3)

![image](https://github.com/go-gitea/gitea/assets/20454870/167a8d37-9a44-4479-9340-5dc80347b595)

# After

![image](https://github.com/go-gitea/gitea/assets/20454870/2f99fec0-98ff-4ba8-97fe-b4567041ae79)

![image](https://github.com/go-gitea/gitea/assets/20454870/ffdeae11-fb06-4d00-b497-eae135f0d7ad)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: silverwind <me@silverwind.io>
11 months ago
..
actions Set pre-step status to `skipped` if job is skipped (#29489) 11 months 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 Use `crypto/sha256` (#29386) 12 months ago
avatar Use `crypto/sha256` (#29386) 12 months ago
badge Implement actions badge svgs (#28102) 11 months ago
base Improve natural sort (#29611) 11 months ago
cache Always enable caches (#28527) 1 year ago
charset Refactor locale&string&template related code (#29165) 12 months ago
container Implement FSFE REUSE for golang files (#21840) 2 years ago
csv Refactor locale&string&template related code (#29165) 12 months ago
emoji Update emoji set to Unicode 15 (#25595) 2 years ago
eventsource Final round of `db.DefaultContext` refactor (#27587) 1 year ago
generate Refactor JWT secret generating & decoding code (#29172) 12 months ago
git Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 11 months ago
gitgraph More `db.DefaultContext` refactor (#27265) 1 year ago
gitrepo Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 11 months ago
graceful Avoid unexpected panic in graceful manager (#29629) 11 months 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 wrong line number in code search result (#29260) 11 months ago
issue/template Extend issue template yaml engine (#29274) 11 months ago
json Replace `interface{}` with `any` (#25686) 2 years ago
label Make label templates have consistent behavior and priority (#23749) 2 years ago
lfs Use `crypto/sha256` (#29386) 12 months ago
log Reduce some allocations in type conversion (#26772) 1 year ago
markup Don't use `<br />` in alert block (#29650) 11 months ago
mcaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
metrics Reduce usage of `db.DefaultContext` (#27073) 1 year ago
migration Refactor locale&string&template related code (#29165) 12 months ago
nosql Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
optional migrate some more "OptionalBool" to "Option[bool]" (#29479) 11 months ago
options Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
packages Integrate alpine `noarch` packages into other architectures index (#29137) 12 months 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 Fix queue worker incorrectly stopped when there are still more items in the queue (#29532) 11 months ago
recaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
references Fix issue link does not support quotes (#29484) (#29487) 11 months ago
regexplru Upgrade go dependencies (#25819) 2 years ago
repository Add user blocking (#29028) 11 months ago
secret Use `crypto/sha256` (#29386) 12 months ago
session Next round of `db.DefaultContext` refactor (#27089) 1 year ago
setting Allow options to disable user ssh keys configuration from the interface on app.ini (#29447) 11 months 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 Enable/disable owner and repo projects independently (#28805) 11 months 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 Remove unnecessary SanitizeHTML from code (#29575) 11 months 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 Refactor locale&string&template related code (#29165) 12 months ago
translation Add an trailing slash to dashboard links (#29555) 11 months 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
uri Implement FSFE REUSE for golang files (#21840) 2 years ago
user Implement FSFE REUSE for golang files (#21840) 2 years ago
util remove util.OptionalBool and related functions (#29513) 11 months ago
validation Check blocklist for emails when adding them to account (#26812) 1 year ago
web Refactor locale&string&template related code (#29165) 12 months ago
webhook Fix schedule tasks bugs (#28691) 1 year ago