I ended up using a custom css property since my target browsers all support that and then I didn’t have to do anything to the nodes or the dom representation of them. So my style looks more like the following:
“margin-left:calc(var(--custom-margin-size)*” + node.attrs.marginCount + “);”
1 Like