siyuan-note/siyuan · error
unsupported attribute view rich text node
Error message
unsupported attribute view rich text node [%s]
What it means
The AST walker found a node whose type is not in the whitelist (isAllowedValueTextRichNode) and, for table cells with images enabled, also not in the image whitelist (isAllowedTableCellRichImageNode). Attribute view rich text intentionally supports only a restricted subset of block-DOM node types; anything richer is rejected so stored cell content stays renderable and safe.
Solutions
- Inspect the error's node type name and remove that construct from the cell content (convert to plain styled text)
- If the content legitimately contains images, use the images-enabled path (ParseTableCellRich table cell rendering, normalizeValueTextRichTreeSourceWithImages with images=true) rather than parseValueTextRich
- Reduce pasted document content to supported inline marks (text marks, refs, inline code/math, etc.) before storing it in a rich text value
- Update SiYuan to a version whose node whitelist matches your data if the data was written by a newer kernel
Example fix
// before rich content: "# Heading\n\nparagraph with [doc](siyuan://blocks/20200101120000-abcdefg)" // after rich content: "paragraph text with supported inline marks only, no headings or multi-block content"
Defensive patterns
Strategy: validation
Validate before calling
// pre-scan content for multi-block constructs before storing tree, err := luteMd2BlockDOMTree(content) // reject if it contains headings, tables, code blocks, or (for text values) images
Prevention
- Paste only inline content into database text cells
- Use ParseTableCellRich (images path) for content that may contain images
- Strip block-level constructs from pasted document text before storing
- Keep kernel versions aligned with any data written by newer builds
When it happens
Trigger: Parsing rich text that contains disallowed constructs such as code blocks, tables, blockquotes, super blocks, embeds, or (when images=false) image/asset nodes; ParseTableCellRich called with images disabled while the content includes images.
Common situations: Pasting multi-block or image-heavy markdown into a database text cell; copying document content into rich text values; enabling images only for table cells but parsing the same content with parseValueTextRich (images=false).
Understand the failure class
Background: Schema validation failed / invalid input schema: payload rejected because its shape doesn't match the expected schema — this error's family across 28 libraries.
Related errors
- encoded style entity is not attached to an attribute view…
- invalid encoded style entity in attribute view rich text…
- attribute view rich text normalization did not converge
- attribute view rich text style entity sentinel was not…
- attribute view rich text style entity was not restored
AI-assisted analysis of siyuan-note/siyuan@9f775e8a12 (2026-09-19).
Data as JSON: /api/errors/a0b56738efbe4a02.
Report an issue: GitHub.
Appendix: source
Thrown at kernel/av/value.go:607
}
err = validateValueTextRichTreeWithImages(tree, images)
return
}
func validateValueTextRichTree(tree *parse.Tree) (err error) {
return validateValueTextRichTreeWithImages(tree, false)
}
func validateValueTextRichTreeWithImages(tree *parse.Tree, images bool) (err error) {
if nil == tree || nil == tree.Root {
return fmt.Errorf("attribute view rich text tree is missing")
}
ast.Walk(tree.Root, func(node *ast.Node, entering bool) ast.WalkStatus {
if !entering {
return ast.WalkContinue
}
if !isAllowedValueTextRichNode(node) && !(images && isAllowedTableCellRichImageNode(node)) {
err = fmt.Errorf("unsupported attribute view rich text node [%s]", node.Type.String())
return ast.WalkStop
}
return ast.WalkContinue
})
return
}
// newValueTextRichLute 固定启用存储格式支持的语法,避免编辑器开关变化后重解释既有数据。
func newValueTextRichLute() *lute.Lute {
ret := lute.New()
ret.SetTextMark(true)
ret.SetEmoji(false)
ret.SetProtyleWYSIWYG(true)
ret.SetBlockRef(true)
ret.SetFileAnnotationRef(true)
ret.SetKramdownIAL(true)
ret.SetHTMLTag2TextMark(true)
ret.SetSuperBlock(true)View on GitHub (pinned to 9f775e8a12)