1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-18 13:44:27 +00:00
Yarden Shoham f5ce2ed292
Allow all URL schemes in Markdown links by default (#24805)
- Closes #21146
- Closes #16721

## ⚠️ BREAKING ⚠️
This changes the default behavior to now create links for any URL scheme
when the user uses the markdown form for links (`[label](URL)`), this
doesn't affect the rendering of inline links. To opt-out set the
`markdown.CUSTOM_URL_SCHEMES` setting to a list of allowed schemes, all
other schemes (except `http` and `https`) won't be allowed.

# Before

![image](https://github.com/go-gitea/gitea/assets/20454870/35fa18ce-7dda-4995-b5b3-3f360f38296d)

# After

![image](https://github.com/go-gitea/gitea/assets/20454870/0922216b-0b35-4b77-9919-21a5c21dd5d0)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: Giteabot <teabot@gitea.io>
2023-05-19 17:17:07 +02:00
..
2023-04-17 11:37:23 +08:00
2023-01-05 13:58:51 +02:00
2023-04-24 05:50:58 -04:00
2023-02-18 21:17:39 +02:00
2023-05-08 19:49:59 +08:00
2023-05-08 19:49:59 +08:00
2023-05-14 23:38:40 +08:00
2023-02-11 08:39:50 +08:00
2022-12-30 23:31:00 +08:00
2023-05-08 19:49:59 +08:00
2023-05-12 17:27:50 +00:00