Pass custom id to nodes?

Hi,

getAttrs expects the return value to be an object, not a string.

So changing

return id;

into

return { id };

solves the issue with the attribute not being displayed on docnode.