Vertically aligning nodelabels with nodes Plotly.go.Sankey

Iโ€™ve recently updated plotly to the newest version, which fixed the issue with using html for node labels. So i can now add linebreaks by adding
to my label strings. However this seems to have broken the aligning functionality. And now my nodelabels are added at the top of the node instead of the center. As centering in HTML5 has been removed, and moved to CSS i donโ€™t know a workaround for this. I can ofcourse manually add enough linebreaks to get it to fit, but this seems like a terrible solution.