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>
2024-03-08 09:30:41 +00:00
..
actions Set pre-step status to `skipped` if job is skipped (#29489) 2024-03-01 13:23:53 +00:00
activitypub Upgrade to golangci-lint@v1.55.0 (#27756) 2023-10-24 02:54:59 +00:00
analyze
assetfs
auth Use `crypto/sha256` (#29386) 2024-02-25 13:32:13 +00:00
avatar Use `crypto/sha256` (#29386) 2024-02-25 13:32:13 +00:00
badge Implement actions badge svgs (#28102) 2024-02-27 18:56:18 +01:00
base Improve natural sort (#29611) 2024-03-05 15:13:35 +00:00
cache Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
charset Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
container
csv Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
emoji
eventsource Final round of `db.DefaultContext` refactor (#27587) 2023-10-14 08:37:24 +00:00
generate Refactor JWT secret generating & decoding code (#29172) 2024-02-16 15:18:30 +00:00
git Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 2024-03-08 15:30:10 +08:00
gitgraph More `db.DefaultContext` refactor (#27265) 2023-09-29 12:12:54 +00:00
gitrepo Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 2024-03-08 15:30:10 +08:00
graceful Avoid unexpected panic in graceful manager (#29629) 2024-03-06 11:50:39 +00:00
hcaptcha
highlight Add option to disable ambiguous unicode characters detection (#28454) 2023-12-17 14:38:54 +00:00
hostmatcher Support allowed hosts for webhook to work with proxy (#27655) 2023-10-18 09:44:36 +00:00
html
httpcache Also match weakly validated ETags (#28957) 2024-01-29 16:18:40 +00:00
httplib
indexer Fix wrong line number in code search result (#29260) 2024-03-06 07:24:43 +00:00
issue/template Extend issue template yaml engine (#29274) 2024-03-04 01:37:00 +01:00
json
label
lfs Use `crypto/sha256` (#29386) 2024-02-25 13:32:13 +00:00
log
markup Don't use `<br />` in alert block (#29650) 2024-03-08 09:30:41 +00:00
mcaptcha
metrics
migration Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
nosql
optional migrate some more "OptionalBool" to "Option[bool]" (#29479) 2024-02-29 18:52:49 +00:00
options
packages Integrate alpine `noarch` packages into other architectures index (#29137) 2024-02-25 15:10:55 +00:00
paginator
pprof
private Return `responseText` instead of string in some functions (#28836) 2024-01-19 10:45:23 +08:00
process Replace assert.Fail with assert.FailNow (#27578) 2023-10-11 11:02:24 +00:00
proxy
proxyprotocol
public Refactor CORS handler (#28587) 2023-12-25 20:13:18 +08:00
queue Fix queue worker incorrectly stopped when there are still more items in the queue (#29532) 2024-03-02 16:07:54 +00:00
recaptcha
references Fix issue link does not support quotes (#29484) (#29487) 2024-03-02 09:54:46 +00:00
regexplru
repository Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
secret Use `crypto/sha256` (#29386) 2024-02-25 13:32:13 +00:00
session Next round of `db.DefaultContext` refactor (#27089) 2023-09-16 14:39:12 +00:00
setting Allow options to disable user ssh keys configuration from the interface on app.ini (#29447) 2024-03-04 07:50:21 +00:00
sitemap
ssh Remove SSH workaround (#27893) 2023-11-03 15:21:05 +00:00
storage
structs Enable/disable owner and repo projects independently (#28805) 2024-03-04 02:56:52 +00:00
svg
sync
system Replace more db.DefaultContext (#27628) 2023-10-15 17:46:06 +02:00
templates Remove unnecessary SanitizeHTML from code (#29575) 2024-03-04 12:02:45 +00:00
test
testlogger
timeutil Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
translation Add an trailing slash to dashboard links (#29555) 2024-03-04 01:02:51 +00:00
turnstile
typesniffer
updatechecker Replace more db.DefaultContext (#27628) 2023-10-15 17:46:06 +02:00
uri
user
util remove util.OptionalBool and related functions (#29513) 2024-03-02 16:42:31 +01:00
validation
web Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
webhook Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00