mirror of
https://github.com/usememos/memos.git
synced 2025-10-30 08:17:29 +08:00
set HasCode only for CodeBlock (#4842)
This commit is contained in:
parent
29b683d5db
commit
452f47c4b9
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue