Skip to content
Permalink
Browse files

Add u-url class and span in mention link

Ref T627
  • Loading branch information
thebaer committed Feb 8, 2020
1 parent eac2231 commit 457051106d9db8e739f7bfb8db878aeda9fb8e80
Showing with 1 addition and 1 deletion.
  1. +1 −1 postrender.go
@@ -88,7 +88,7 @@ func applyMarkdownSpecial(data []byte, skipNoFollow bool, baseURL string, cfg *c
}
md = []byte(hashtagReg.ReplaceAll(md, []byte("<a href=\""+tagPrefix+"$1\" class=\"hashtag\"><span>#</span><span class=\"p-category\">$1</span></a>")))
handlePrefix := cfg.App.Host + "/@/"
md = []byte(mentionReg.ReplaceAll(md, []byte("<a href=\""+handlePrefix+"$1$2\" class=\"mention\">@$1$2</a>")))
md = []byte(mentionReg.ReplaceAll(md, []byte("<a href=\""+handlePrefix+"$1$2\" class=\"u-url mention\">@<span>$1$2</span></a>")))
}
// Strip out bad HTML
policy := getSanitizationPolicy()

0 comments on commit 4570511

Please sign in to comment.
You can’t perform that action at this time.