passing html to plot.text

No, unfortunately it’s not possible to pass HTML to Plot.text. But you can create a custom mark that returns a foreignObject with just any HTML contents. However, it might be a bit difficult to position it relative to the data. I wonder if we should offer a foreignObject mark to make this easier?

A second thing that is too difficult in SVG is to create a text with a box border and background…