mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-20 16:10:50 +00:00
fix hljs unintenionally highlighting commit links (#7244)
* fix hljs unintenionally highlighting commit links * fix unit tests
This commit is contained in:
parent
a205155e9d
commit
b209531959
2 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue