Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Configure Markdown parser to not escape double quotes. Closes #1698.

Kailash Nadhdc43e9cb8bf3
diff --git a/models/models.go b/models/models.go
index c051328a..1d67d436 100644
--- a/models/models.go
+++ b/models/models.go
@@ -422,6 +422,12 @@ var markdown = goldmark.New(
extension.Table,
extension.Strikethrough,
extension.TaskList,
+ extension.NewTypographer(
+ extension.WithTypographicSubstitutions(extension.TypographicSubstitutions{
+ extension.LeftDoubleQuote: []byte(`"`),
+ extension.RightDoubleQuote: []byte(`"`),
+ }),
+ ),
),
)