gitea/web_src/js
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
..
components Hide href attribute of a tag if there is no target_url (#34556) 2025-06-10 19:32:20 +00:00
features fix: prevent double markdown link brackets when pasting URL (#34745) 2025-06-17 21:33:50 +08:00
markup Fix footnote jump behavior on the issue page. (#34621) 2025-06-09 17:18:11 +00:00
modules Fix JS error for "select" dropdown (#34743) 2025-06-17 19:19:08 +08:00
render Refactor markup and pdf-viewer to use new init framework (#33772) 2025-03-03 11:49:15 -08:00
standalone Update TypeScript types (#33799) 2025-03-05 08:03:44 -08:00
utils Fix comment textarea scroll issue in Firefox (#34438) 2025-05-13 08:52:25 +02:00
vendor Fix areYouSure confirm (#32941) 2024-12-21 12:11:22 -05:00
webcomponents Optimize overflow-menu (#34183) 2025-04-13 01:59:36 +00:00
bootstrap.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
bootstrap.ts Add types to fetch,toast,bootstrap,svg (#31627) 2024-07-25 23:31:24 +00:00
globals.d.ts Fix various Fomantic UI and htmx problems (#33851) 2025-03-11 11:35:05 -07:00
globals.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
htmx.ts Update JS and PY deps, misc tweaks (#33903) 2025-03-16 10:04:18 +01:00
index.ts Optimize the calling code of queryElems (#34235) 2025-04-19 08:17:07 +08:00
svg.test.ts Remove "class-name" from svg icon (#33540) 2025-02-09 22:39:54 +02:00
svg.ts Add file tree to file view page (#32721) 2025-03-15 16:26:49 +08:00
types.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
utils.test.ts Use git diff-tree for DiffFileTree on diff pages (#33514) 2025-02-28 00:58:25 +00:00
utils.ts Add fullscreen mode as a more efficient operation way to view projects (#34081) 2025-04-23 13:42:22 +08:00
vitest.setup.ts Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00