added link target
This commit is contained in:
parent
1d5dd87230
commit
5bb294e63f
1 changed files with 1 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ func render(text string) Article {
|
|||
html = reHeader.ReplaceAllString(html, `${1} id="${2}">${2}${3}`)
|
||||
html = reLink.ReplaceAllStringFunc(html, makeLinkTitle)
|
||||
html = strings.Replace(html, "</h1>", `</h1><hr>`, -1)
|
||||
html = strings.Replace(html, "<a", `<a target="_blank"`, -1)
|
||||
return Article{
|
||||
Search: whiteSpace.ReplaceAllString(string(filter.Filter(rend)), " "),
|
||||
Index: template.HTML(index),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue