I have looked through many open source projects and extensions and never came across a non-primitive attribute. I know that in the documentation it says that attrs may be of any type but I wanted to get some confirmation because in my use case I need a list and objects to be associated with a node. My question is would it be okay to provide a list/object as an attribute to a node or would it be better to only provide an id and keep the relevant state outside of tiptap?
Anything that can be JSON serialized can be used as an attribute value.