Author: rowan.collins
Description:
When an image's alt and/or title attributes are generated from a caption with a
link in, the text of the link disappears. For example: "[[Image:Foo|thumb|text
with a [[link]] in it]]" should become "text with a link in it", but currently
becomes "text with a in it".
This may or may not still be a problem once bug 368 is closed - depending what
combination of default values we decide to use.
The problem arises because internal links are replaced by placeholders, which
are comments, so the text of the link is not available once the caption is being
processed. It is removed by a substitution which blanks all HTML tags (which at
least lets external links appear correctly); otherwise, it would appear as
something like "text with a <!-- Link 14 --> in it".
The only approach I can think of, is that it might be possible to somehow
retrieve the link text from the placeholder code.
Version: 1.4.x
Severity: normal