</p>
!! end
+!! test
+<nowiki> inside a link
+!! input
+[[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
+!! result
+<p><a href="/wiki/Main_Page" title="Main Page">Main Page</a> <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
+</p>
+!! end
+
###
### Interwiki links
###
###
!! test
Basic section headings
+!! options
+title=[[Parser test script]]
!! input
== Headline 1 ==
Some text
!! test
Section headings with TOC
+!! options
+title=[[Parser test script]]
!! input
== Headline 1 ==
=== Subheadline 1 ===
!! test
Resolving duplicate section names
+!! options
+title=[[Parser test script]]
!! input
== Foo bar ==
==Foo bar==
!! test
Template with sections, __NOTOC__
-!! options title=[[Parser test script]]
+!! options
+title=[[Parser test script]]
!! input
__NOTOC__
==Section 0==
!! end
+!! test
+Link inside a section heading
+!! options
+title=[[Parser test script]]
+!! input
+==Section with a [[Main Page|link]] in it==
+!! result
+<div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=1" title="Parser test script">edit</a>]</div><a name="Section_with_a_link_in_it"></a><h2>Section with a <a href="/wiki/Main_Page" title="Main Page">link</a> in it</h2>
+
+!! end
+
TODO:
more images
more tables