File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ const (
37
37
)
38
38
39
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)
40
+ // 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
41
43
// In history, there was a mess:
42
44
// * The behavior was controlled by `Metas["mode"] != "document",
43
45
// * However, many places render the content without setting "mode" in Metas, all these places used comment line break setting incorrectly
You can’t perform that action at this time.
0 commit comments