rectangle [ ] - how does it work?

0 votes
asked May 26 in Question / help by mac (120 points)

I found example like this:

@startuml
rectangle a [
  this is 1st liine
  <img:image.png>
  this is second line
]
@enduml

This simply renders a rectangle with text and an image. You cannot do that with 

rectanble b {...}

I'm wondering if that's some side effect (not a feature) or there is some explanation :)

ps. I'm looking for ways of embedding colorful icons into PlantUML components such rectangle etc. Btw. I found I can do this with:

card "test \n <img:icon.png> \n test"

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...