Open zunsthy opened 1 month ago
Style parse rules will match regardless of whether a node parse rule happened to already have looked at that style (in fact, the library doesn't even know that your getAttrs
function looked at the style). I don't really see a way to make this work differently.
For example, declare a node with
background-color
and a mark withbackground-color
, the nodebackground-color
attribute will pass to the node's children.Input HTML
Expected
But get
The "colorBlock" node matches "red" color attribute, but I can't prevent the "red" color apply to the "abc" text as "colorText" mark.