1: Surrounded by tildes
//- - - - - - - - -//
~foo~
//- - - - - - - - -//
<p><sub>foo</sub></p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

2: Formula with tildes in the middle
//- - - - - - - - -//
H~2~O
//- - - - - - - - -//
<p>H<sub>2</sub>O</p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

3: Indices
//- - - - - - - - -//
x~i~ + x~j~
//- - - - - - - - -//
<p>x<sub>i</sub> + x<sub>j</sub></p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

4: Escaped tilde
//- - - - - - - - -//
~foo\~
//- - - - - - - - -//
<p>~foo~</p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

5: Non-breaking space entity
//- - - - - - - - -//
~foo&nbsp;bar~
//- - - - - - - - -//
<p><sub>foo bar</sub></p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

6: Non-breaking space UTF-8
//- - - - - - - - -//
~foo bar~
//- - - - - - - - -//
<p><sub>foo bar</sub></p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

7: Tildes in the middle and text before
//- - - - - - - - -//
text H~2~O
//- - - - - - - - -//
<p>text H<sub>2</sub>O</p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

8: Tildes in the middle and text after
//- - - - - - - - -//
H~2~O text
//- - - - - - - - -//
<p>H<sub>2</sub>O text</p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

9: Check for a direct conflict with strikethrough
//- - - - - - - - -//
~~foobar~~
//- - - - - - - - -//
<p><del>foobar</del></p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

10: Mixed subscript and strikethrough will not work as expected!
//- - - - - - - - -//
~~x~foobar~~~
//- - - - - - - - -//
<p>~~x~foobar~~~</p>
//= = = = = = = = = = = = = = = = = = = = = = = =//
