0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-06-24 12:54:00 +02:00
MaxWebZ 037f72bdb3
fix: prevent double markdown link brackets when pasting URL (#34745)
When adding a link using the "Add a link" button in comment editor,
pasting a URL resulted in incorrect Markdown formatting (double
brackets) instead of replacing the placeholder text.

This fix adds a context check to prevent creating a new markdown link
when we're already inside an existing one.

Fixes #34740

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-17 21:33:50 +08:00
..
2025-06-12 10:09:42 +08:00
2025-06-12 09:19:24 -07:00