add xlink href for older browsers
This commit is contained in:
parent
08e82e652f
commit
d52b3b4db5
1 changed files with 1 additions and 1 deletions
|
|
@ -593,7 +593,7 @@ func render3dRect(targetShape d2target.Shape) string {
|
|||
func drawShape(writer io.Writer, targetShape d2target.Shape, sketchRunner *d2sketch.Runner) (labelMask string, err error) {
|
||||
closingTag := "</g>"
|
||||
if targetShape.Link != "" {
|
||||
fmt.Fprintf(writer, `<a href="%s">`, targetShape.Link)
|
||||
fmt.Fprintf(writer, `<a href="%s" xlink:href="%[1]s">`, targetShape.Link)
|
||||
closingTag += "</a>"
|
||||
}
|
||||
fmt.Fprintf(writer, `<g id="%s">`, svg.EscapeText(targetShape.ID))
|
||||
|
|
|
|||
Loading…
Reference in a new issue