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 13:26:55 +00:00
committed by GitHub
co-authored by wxiaoguang Lunny Xiao
parent ca414a7ccf
commit 5136c879c2
5 changed files with 80 additions and 60 deletions
+1 -1
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