You are correct that the templates are in plain text.
The actual response that contains the contains the templates text isn’t, and as such there may be a way to work around this by writing the html code in the plain text template. However, this hasn't been tested and so it might not work. Is this something you tried?
Tom