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

0 votes
asked Jan 10 in Question / help by kaushalmodi (460 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 by kaushalmodi (460 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
...