diff options
author | silverwind <me@silverwind.io> | 2019-06-19 00:31:31 +0200 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-06-18 18:31:31 -0400 |
commit | b209531959104cb6d5a8079ec567386720f3aaf3 (patch) | |
tree | 572793a1f9721cc5d63d8348c71637dae658466a /modules/markup/html.go | |
parent | a205155e9d984f050eb081aa4904fad6a0598ab6 (diff) | |
download | gitea-b209531959104cb6d5a8079ec567386720f3aaf3.tar.gz gitea-b209531959104cb6d5a8079ec567386720f3aaf3.zip |
fix hljs unintenionally highlighting commit links (#7244)
* fix hljs unintenionally highlighting commit links
* fix unit tests
Diffstat (limited to 'modules/markup/html.go')
-rw-r--r-- | modules/markup/html.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/markup/html.go b/modules/markup/html.go index dbfc8dbe85..3e976929c7 100644 --- a/modules/markup/html.go +++ b/modules/markup/html.go @@ -323,6 +323,7 @@ func createCodeLink(href, content string) *html.Node { code := &html.Node{ Type: html.ElementNode, Data: atom.Code.String(), + Attr: []html.Attribute{{Key: "class", Val: "nohighlight"}}, } code.AppendChild(text) |