Make pasted "img" tag has the same behavior as markdown image (#31235) (#31243)

Backport #31235 by wxiaoguang

Fix #31230

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
Giteabot 2024-06-04 21:26:55 +08:00 committed by GitHub
parent ca414a7ccf
commit 5136c879c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 80 additions and 60 deletions

View file

@ -73,7 +73,7 @@ type RenderContext struct {
Type string
IsWiki bool
Links Links
Metas map[string]string
Metas map[string]string // user, repo, mode(comment/document)
DefaultLink string
GitRepo *git.Repository
ShaExistCache map[string]bool