Skip to content

Commit 283cfe0

Browse files
committed
backport go-gitea#27968
1 parent 7ed79b7 commit 283cfe0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/markup/orgmode/orgmode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,6 @@ func (r *Writer) WriteRegularLink(l org.RegularLink) {
177177
if l.Description != nil {
178178
description = r.WriteNodesAsString(l.Description...)
179179
}
180-
fmt.Fprintf(r, `<a href="%s" title="%s">%s</a>`, link, description, description)
180+
fmt.Fprintf(r, `<a href="%s">%s</a>`, link, description)
181181
}
182182
}

modules/markup/orgmode/orgmode_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ func TestRender_StandardLinks(t *testing.T) {
3636
assert.Equal(t, strings.TrimSpace(expected), strings.TrimSpace(buffer))
3737
}
3838

39-
googleRendered := "<p><a href=\"https://google.com/\" title=\"https://google.com/\">https://google.com/</a></p>"
39+
googleRendered := "<p><a href=\"https://google.com/\">https://google.com/</a></p>"
4040
test("[[https://google.com/]]", googleRendered)
4141

4242
lnk := util.URLJoin(AppSubURL, "WikiPage")
4343
test("[[WikiPage][WikiPage]]",
44-
"<p><a href=\""+lnk+"\" title=\"WikiPage\">WikiPage</a></p>")
44+
"<p><a href=\""+lnk+"\">WikiPage</a></p>")
4545
}
4646

4747
func TestRender_Media(t *testing.T) {

0 commit comments

Comments
 (0)