]> source.dussan.org Git - gitea.git/commit
Make sure sibling images get a link too (#14979)
authorzeripath <art27@cantab.net>
Sun, 14 Mar 2021 16:36:51 +0000 (16:36 +0000)
committerGitHub <noreply@github.com>
Sun, 14 Mar 2021 16:36:51 +0000 (16:36 +0000)
commit164e35ead3c1b9b82d4a23644f6fe96652a747eb
tree259818dbb68a5361b7f329b163ded6c124795112
parent6463483ec5d441879037d43b0de24f5e92f927d0
Make sure sibling images get a link too (#14979)

* Make sure sibling images get a link too

Due a problem with the ast.Walker in the our transformer in goldmark
an image with a sibling image will not be transformed to gain a parent
link. This PR fixes this.

Fix #12925

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/markup/markdown/goldmark.go
modules/markup/markdown/markdown_test.go