local $/; require 't/runtests.pl'; runtests( data => , dialect => 'XWiki', wiki_uri => 'http://www.test.com/wiki/' ); close DATA; __DATA__ external link __H__

http://example.com

__W__ http://example.com __NEXT__ wrap in html __H__ GOOGLE
NewLine __W__ [GOOGLE>http://google.com] NewLine __NEXT__ bold __H__ bold __W__ *bold* __NEXT__ italics __H__ italics __W__ ~~italics~~ __NEXT__ bold and italics __H__ bold and italics __W__ *bold* and ~~italics~~ __NEXT__ bold-italics nested __H__ bold-italics nested __W__ *~~bold-italics~~ nested* __NEXT__ strong __H__ strong __W__ *strong* __NEXT__ emphasized __H__ emphasized __W__ ~~emphasized~~ __NEXT__ underlined __H__ underlined __W__ underlined __NEXT__ strikethrough __H__ strike __W__ --strike-- __NEXT__ deleted __H__ deleted text __W__ --deleted text-- __NEXT__ inserted __H__ inserted __W__ inserted __NEXT__ span __H__ span __W__ span __NEXT__ strip aname __H__ __W__ __NEXT__ one-line phrasals __H__ phrasals in one line __W__ ~~phrasals in one line~~ __NEXT__ paragrahs __H__

first

second

__W__ first second __NEXT__ lists __H__ __W__ * 1 * 2 __NEXT__ nested lists __H__ __W__ * 1 ** 1a ** 1b * 2 __NEXT__ nested lists (different types) __H__ __W__ * 1 ** a **1. i ** b * 2
indented
__NEXT__ hr __H__
__W__ ---- __NEXT__ br __H__

stuff
stuff two

__W__ stuff stuff two __NEXT__ div __H__
thing
__W__ thing __NEXT__ sub __H__

H2O

__W__ H2O __NEXT__ sup __H__

x2

__W__ x2 __NEXT__ code __H__ $name = 'stan'; __W__ {code}$name = 'stan';{code} __NEXT__ pre __H__
this
  is
    preformatted
      text
__W__
{pre}this
  is
    preformatted
      text{/pre}
__NEXT__ indent __H__
indented text
__W__
indented text
__NEXT__ nested indent __H__
stuff
double-indented
__W__
stuff
double-indented
__NEXT__ h1 __H__

h1

__W__ 1 h1 __NEXT__ h2 __H__

h2

__W__ 1.1 h2 __NEXT__ h3 __H__

h3

__W__ 1.1.1 h3 __NEXT__ h4 __H__

h4

__W__ 1.1.1.1 h4 __NEXT__ h5 __H__
h5
__W__ 1.1.1.1.1 h5 __NEXT__ h6 __H__
h6
__W__ 1.1.1.1.1.1 h6 __NEXT__ table __H__
Name David
Age 24
Height 6'
__W__ {table} Name | David Age | 24 Height | 6' {table} __NEXT__ strip empty aname __H__ some text __W__ some text __NEXT__ wiki link (text == title) __H__ Some wiki page __W__ [Some wiki page|Main.Some_wiki_page] __NEXT__ wiki link (text case != title case) __H__ another page __W__ [another page|Main.Another_page] __NEXT__ wiki link (text != title) __H__ some text __W__ [some text|Main.Another_page] __NEXT__ external links __H__ thing __W__ [thing>http://www.test.com] __NEXT__ external links (rel2abs) __H__ thing __W__ [thing>http://www.test.com/thing.html] __NEXT__ strip urlexpansion __H__ Google (http://www.google.com) __W__ [Google>http://www.google.com] (http://www.google.com)