Enable Hardwraps
This commit is contained in:
+2
-2
@@ -112,9 +112,9 @@ func formatAppendEntry(title, rawURL, comment string, ts time.Time) string {
|
||||
b.WriteString(escapeLinkLabel(title))
|
||||
b.WriteString("](")
|
||||
b.WriteString(rawURL)
|
||||
b.WriteString(")</br>")
|
||||
b.WriteString(")\n")
|
||||
b.WriteString(ts.Format("2006-01-02 15:04"))
|
||||
b.WriteString("</br>")
|
||||
b.WriteString("\n")
|
||||
if comment != "" {
|
||||
b.WriteString(" ")
|
||||
b.WriteString(comment)
|
||||
|
||||
@@ -26,7 +26,7 @@ func initMarkdown(root string) {
|
||||
md = goldmark.New(
|
||||
goldmark.WithExtensions(extension.GFM, extension.Table, newWikiLinkExt(root), newExtLinksExt()),
|
||||
goldmark.WithParserOptions(parser.WithAutoHeadingID()),
|
||||
goldmark.WithRendererOptions(html.WithUnsafe()),
|
||||
goldmark.WithRendererOptions(html.WithUnsafe(), html.WithHardWraps()),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user