Force external links into new tabs

This commit is contained in:
2026-04-29 13:17:42 +02:00
parent 6c268aa829
commit 1d8dfdb1da
2 changed files with 58 additions and 1 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ var md goldmark.Markdown
// targets against the filesystem.
func initMarkdown(root string) {
md = goldmark.New(
goldmark.WithExtensions(extension.GFM, extension.Table, newWikiLinkExt(root)),
goldmark.WithExtensions(extension.GFM, extension.Table, newWikiLinkExt(root), newExtLinksExt()),
goldmark.WithParserOptions(parser.WithAutoHeadingID()),
goldmark.WithRendererOptions(html.WithUnsafe()),
)