Can an <img be supported as a thumbnail, linked to the original?

0 votes
asked Nov 28, 2019 in Bug by boshka (3,060 points)
edited Nov 28, 2019 by boshka

I want a thumbnail be the link to the original image. And, it looks, it can be easily supported by fixing the following defect.

So, this works:

Now I want the image that is within the anchor be scaled down. However, if i do {scale=0.3}, this breaks due to the scaling added to the thumbnail url:

So, in the construction:

[[origURL{tooltip} <img:thnURL{scale=xxx}>]]

1. {} should be parsed as a tooltip for the 1st instance of {}

2. {} should be parsed as scale for the 2nd instance of {}

Currently Plantuml code takes the tooltip between first { and the last }.

Can this be fixed please?

1 Answer

0 votes
answered Nov 29, 2019 by plantuml (257,900 points)
Thanks for the feedback!

This issue should be fixed in last beta

Tell us if it's not working for you.
commented Nov 29, 2019 by boshka (3,060 points)
edited Nov 29, 2019 by boshka

Many thanks! That works!

a side question: can I define target=_blank (_parent, _top, _self), so that I could control the anchor target attribute?

Say: [[origURL{target=_blank;tooltip} <img:thnURL{scale=xxx}>]]