Aaaand to everyone in this thread — here’s another capability that my friend @Artem_F discovered while learning SVG: a way to embed HTML within SVG! Along with <style> for CSS, this effectively allows to render not only multi-line text in <div>s but also any arbitrary HTML & CSS!
(no Javascript though, and these elements won’t be editable if you try to export the image and open it in any vector editor app. But you can still open those in a separate tab and print or print-to-PDF).