!! test
External links: trail
!! input
-Trail (not sure if this is meant to work): [http://example.com link]s
+Linktrails should not work for external links: [http://example.com link]s
!! result
-<p>Trail (not sure if this is meant to work): <a href="http://example.com" class='external text' title="http://example.com" rel="nofollow">link</a>s
+<p>Linktrails should not work for external links: <a href="http://example.com" class='external text' title="http://example.com" rel="nofollow">link</a>s
</p>
!! end
!! result
!! end
-# A table with nothing but a caption is invalid XHTML
+# A table with nothing but a caption is invalid XHTML, we might want to render
+# this as <p>caption</p>
!! test
A table with nothing but a caption
!! input
</td><td> Cell 3, row 1
</td></tr>
<tr>
-bg<td> Cell 1, row 2
+<td> Cell 1, row 2
</td><td> Cell 3, row 2
</td></tr></table>
!! end
-
###
### Internal links
###
</p>
!! end
+!! test
+Link with multiple pipes
+!! input
+[[Main Page|The|Main|Page]]
+!! result
+<p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
+</p>
+!! end
+
!! test
Link to namespaces
!! input