Enable Hardwraps

This commit is contained in:
2026-06-25 14:23:15 +02:00
parent 9f6a611dff
commit 5d069683c4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -112,9 +112,9 @@ func formatAppendEntry(title, rawURL, comment string, ts time.Time) string {
b.WriteString(escapeLinkLabel(title)) b.WriteString(escapeLinkLabel(title))
b.WriteString("](") b.WriteString("](")
b.WriteString(rawURL) b.WriteString(rawURL)
b.WriteString(")</br>") b.WriteString(")\n")
b.WriteString(ts.Format("2006-01-02 15:04")) b.WriteString(ts.Format("2006-01-02 15:04"))
b.WriteString("</br>") b.WriteString("\n")
if comment != "" { if comment != "" {
b.WriteString(" ") b.WriteString(" ")
b.WriteString(comment) b.WriteString(comment)
+1 -1
View File
@@ -26,7 +26,7 @@ func initMarkdown(root string) {
md = goldmark.New( md = goldmark.New(
goldmark.WithExtensions(extension.GFM, extension.Table, newWikiLinkExt(root), newExtLinksExt()), goldmark.WithExtensions(extension.GFM, extension.Table, newWikiLinkExt(root), newExtLinksExt()),
goldmark.WithParserOptions(parser.WithAutoHeadingID()), goldmark.WithParserOptions(parser.WithAutoHeadingID()),
goldmark.WithRendererOptions(html.WithUnsafe()), goldmark.WithRendererOptions(html.WithUnsafe(), html.WithHardWraps()),
) )
} }