diff --git a/notes/file.go b/notes/file.go index 23d8971..c75b2b8 100755 --- a/notes/file.go +++ b/notes/file.go @@ -115,7 +115,7 @@ func (n *Notes) commentFormer(urlPath string, md []byte) html.RenderNodeFunc { } } return func(w io.Writer, node ast.Node, entering bool) (ast.WalkStatus, bool) { - if heading, ok := node.(*ast.Heading); ok && !entering { + if heading, ok := node.(*ast.Heading); !n.ro && ok && !entering { nextHeader() fmt.Fprintf(w, `