Page MenuHomePhabricator

Extra pipes in image markup breaks in tables
Closed, DuplicatePublic

Description

Author: rockmfr

Description:
When using multiple empty pipes in image markup within a wiki table, the pipes are treated as table markup.

Case 1:

{|
|-
| [[Image:Example.png||]]
|}

Actual output:

<table>
<tr>
<td>[[Image:Example.png</td>
<td>]]</td>
</tr>
</table>

Expected output:

<table>
<tr>
<td><a href="/wiki/Image:Example.png" class="image" title="Example.png"><img alt="" src="http://upload.wikimedia.org/wikipedia/en/7/70/Example.png" width="275" height="297" border="0" /></a></td>
</tr>
</table>

Version: 1.24rc
Severity: normal
See Also:
T18905: Parsing precedence of exclamation character inside links inside tables
T110268: Allow | in wikitext tables attributes

Details

Reference
bz14260