We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63e68b1 commit 2c5b485Copy full SHA for 2c5b485
modules/markup/render.go
@@ -37,7 +37,9 @@ const (
37
)
38
39
var RenderBehaviorForTesting struct {
40
- // Markdown line break rendering has 2 behaviors: keep soft ("\n" for comments) or use hard (replace "\n" with "<br>" for non-comments)
+ // Markdown line break rendering has 2 default behaviors:
41
+ // * Use hard: replace "\n" with "<br>" for comments, setting.Markdown.EnableHardLineBreakInComments=true
42
+ // * Keep soft: "\n" for non-comments (a.k.a. documents), setting.Markdown.EnableHardLineBreakInDocuments=false
43
// In history, there was a mess:
44
// * The behavior was controlled by `Metas["mode"] != "document",
45
// * However, many places render the content without setting "mode" in Metas, all these places used comment line break setting incorrectly
0 commit comments