A rule for importing HTML: which tag maps to this node/mark, and how its attributes translate. getAttrs returning false rejects the match (the element is then treated as unknown: kept content, dropped formatting).
getAttrs
false
Optional
Readonly
Attribute that must additionally be present on the element.
Lowercase tag name to match (e.g. "h2", "strong").
"h2"
"strong"
A rule for importing HTML: which tag maps to this node/mark, and how its attributes translate.
getAttrsreturningfalserejects the match (the element is then treated as unknown: kept content, dropped formatting).