]> source.dussan.org Git - gitea.git/commit
Make sure sibling images get a link too (#14979) (#14995)
authorzeripath <art27@cantab.net>
Mon, 15 Mar 2021 04:34:56 +0000 (04:34 +0000)
committerGitHub <noreply@github.com>
Mon, 15 Mar 2021 04:34:56 +0000 (12:34 +0800)
commitc965ed6529872518595098824b42e4471b59c82a
tree4c6761ad2308fc7203ead381749b7a6113ff81d3
parent71a2adbf10f0f3df9d9f2ab59c51bbcb19c00c4b
Make sure sibling images get a link too (#14979) (#14995)

Backport #14979

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