set HasCode only for CodeBlock (#4842)

pull/4849/head
unuunn 7 days ago committed by GitHub
parent 29b683d5db
commit 452f47c4b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -97,7 +97,7 @@ func RebuildMemoPayload(memo *store.Memo) error {
if !n.Complete {
property.HasIncompleteTasks = true
}
case *ast.Code, *ast.CodeBlock:
case *ast.CodeBlock:
property.HasCode = true
case *ast.EmbeddedContent:
// TODO: validate references.

Loading…
Cancel
Save