local $/;
require 't/runtests.pl';
runtests( data => <DATA>, dialect => 'Wikispaces' );
close DATA;

__DATA__
pre
__H__
<html>
<pre>
Device ID                 : 0
Device Revision           : 0
Firmware Revision         : 1.71
IPMI Version              : 1.0
Manufacturer ID           : 674
Product ID                : 1 (0x0001)
Device Available          : yes
Provides Device SDRs      : yes
Additional Device Support :
    Sensor Device
    SDR Repository Device
    SEL Device
    FRU Inventory Device
    IPMB Event Receiver
Aux Firmware Rev Info     :
    0x00
    0x00
    0x00
    0x00
</pre>
</html>
__W__
<pre>
Device ID                 : 0
Device Revision           : 0
Firmware Revision         : 1.71
IPMI Version              : 1.0
Manufacturer ID           : 674
Product ID                : 1 (0x0001)
Device Available          : yes
Provides Device SDRs      : yes
Additional Device Support :
    Sensor Device
    SDR Repository Device
    SEL Device
    FRU Inventory Device
    IPMB Event Receiver
Aux Firmware Rev Info     :
    0x00
    0x00
    0x00
    0x00
</pre>
__NEXT__
para
__H__
<html><p>para1</p><p>para2</p></html>
__W__
para1

para2
__NEXT__
character formatting
__H__
<html>
<b>bold</b>
<p><i>italics</i></p>
<p><u>underline</u></p>
<p><b>bold</b> and <i>italics</i></p>
<p><i><b>bold-italics</b> nested</i></p>
<p><strong>strong</strong></p>
<p><em>emphasized</em></p>
</html>
__W__
**bold**

//italics//

__underline__

**bold** and //italics//

//**bold-italics** nested//

**strong**

//emphasized//
__NEXT__
one-line phrasals
__H__
<html><i>phrasals
in one line</i></html>
__W__
//phrasals in one line//
__NEXT__
paragraph blocking
__H__
<html><p>p1</p><p>p2</p></html>
__W__
p1

p2
__NEXT__
lists
__H__
<html><ul><li>1</li><li>2</li></ul></html>
__W__
* 1
* 2
__NEXT__
nested lists
__H__
<html><ul><li>1<ul><li>1a</li><li>1b</li></ul></li><li>2</li></ul>
__W__
* 1
** 1a
** 1b
* 2
__NEXT__
nested lists (different types)
__H__
<html><ul><li>1<ul><li>a<ol><li>i</li></ol></li><li>b</li></ul></li><li>2</li></ul></html>
__W__
* 1
** a
**# i
** b
* 2
__NEXT__
hr
__H__
<html><hr /></html>
__W__
----
__NEXT__
code
__H__
<html><code>$name = 'stan';</code></html>
__W__
[[code]]
$name = 'stan';
[[code]]
__NEXT__
tt
__H__
<html><tt>tt text</tt></html>
__W__
{{tt text}}
__NEXT__
pre
__H__
<html><pre>this
  is
    preformatted
      text</pre></html>
__W__
<pre>this
  is
    preformatted
      text</pre>
__NEXT__
indent
__H__
<html><blockquote>indented text</blockquote></html>
__W__
> indented text
__NEXT__
nested indent
__H__
<html><blockquote>indented text <blockquote>double-indented</blockquote></blockquote></html>
__W__
> indented text
>> double-indented
__NEXT__
h1
__H__
<h1>h1</h1>
__W__
= h1 =
__NEXT__
h2
__H__
<h2>h2</h2>
__W__
== h2 ==
__NEXT__
h3
__H__
<h3>h3</h3>
__W__
=== h3 ===
__NEXT__
h4
__H__
<h4>h4</h4>
__W__
=== h4 ===
__NEXT__
h5
__H__
<h5>h5</h5>
__W__
=== h5 ===
__NEXT__
h6
__H__
<h6>h6</h6>
__W__
=== h6 ===
__NEXT__
img
__H__
<p><img src="http://www.example.com/logo.png" alt="logo" /></p>
<p><img src="http://www.example.com/logo.png" alt="logo" align="left" /></p>
<p><img src="http://www.example.com/logo.png" alt="logo" align="right" /></p>
<p><img src="http://www.example.com/logo.png" alt="logo" align="center" /></p>
<p><img src="http://www.example.com/logo.png" alt="logo" title="caption for logo" /></p>
<p><img src="http://www.example.com/logo.png" width="180" /></p>
<p><img src="http://www.example.com/logo.png" height="80" /></p>
__W__
[[image:http://www.example.com/logo.png alt="logo"]]

[[image:http://www.example.com/logo.png alt="logo" align="left"]]

[[image:http://www.example.com/logo.png alt="logo" align="right"]]

[[image:http://www.example.com/logo.png alt="logo" align="center"]]

[[image:http://www.example.com/logo.png alt="logo" caption="caption for logo"]]

[[image:http://www.example.com/logo.png width="180"]]

[[image:http://www.example.com/logo.png height="80"]]
__NEXT__
external links 2
__H__
<html><a href="http://www.example.com">http://www.example.com</a></html>
__W__
http://www.example.com
__NEXT__
anchor
__H__
<html><a name="anchor">text</a></html>
__W__
[[#ws_anchor]]text
__NEXT__
simple tables
__H__
<html>
  <table>
    <tr>
      <td> Name </td>
      <td> David </td></tr><tr><td> Age </td>
      <td> 24 </td>
    </tr>
  </table>
</html>
__W__
|| Name || David ||
|| Age || 24 ||
__NEXT__
tables 2
__H__
<html>
<table>
<tr>
<th>heading1</th>
<th>heading2</th>
<th>heading3</th>
</tr>

<tr>
<td>table cell</td>
<td>table cell</td>
<td>table cell</td>
</tr>

<tr>
<td align="center">centered</td>
<td align="right">right</td>
<td>normal</td>
</tr>

<tr>
<td colspan="2">spans 2 columns</td>
<td>cell</td>
</tr>

<tr>
<td>col1</td>
<td>col2</td>
<td>col3</td>
</tr>

<tr>
<td>col1</td>
<td>col2</td>
<td>col3</td>
</tr>

</table>
</html>
__W__
||~ heading1 ||~ heading2 ||~ heading3 ||
|| table cell || table cell || table cell ||
||= centered ||> right || normal ||
|||| spans 2 columns || cell ||
|| col1 || col2 || col3 ||
|| col1 || col2 || col3 ||
__NEXT__
simple tables
__H__
<html>
<table>
<tr>
<td><p>para1</p><p>para2</p><p>para3</p></td>
</tr>
</table>
</html>
__W__
|| para1
para2
para3 ||