Can we add a description portion to a hyperlink in SVG exports?

0 votes
asked Jan 10, 2019 in Question / help by kaushalmodi (260 points)

From http://plantuml.com/svg, we have:

@startuml
skinparam svgLinkTarget _parent
start
:[[http://plantuml.com]];
stop
@enduml

That creates a box with string "http://plantuml.com" and hyperlinks it to the same.

Can we do something like [PlantUML Homepage](http://plantuml.com)  where the box shows the string "PlantUML Homepage", but clicking it takes to the "http://plantuml.com"?

Is there a syntax that allows that?

Thanks.

1 Answer

0 votes
answered Jan 10, 2019 by kaushalmodi (260 points)
 
Best answer

Oops!

Asked this question too soon.

Found the answer from http://plantuml.com/link:

@startuml
skinparam svgLinkTarget _parent
start
:[[http://plantuml.com PlantUML Homepage]];
stop
@enduml
...