1: Surrounded by tildes //- - - - - - - - -// ~foo~ //- - - - - - - - -//

foo

//= = = = = = = = = = = = = = = = = = = = = = = =// 2: Formula with tildes in the middle //- - - - - - - - -// H~2~O //- - - - - - - - -//

H2O

//= = = = = = = = = = = = = = = = = = = = = = = =// 3: Indices //- - - - - - - - -// x~i~ + x~j~ //- - - - - - - - -//

xi + xj

//= = = = = = = = = = = = = = = = = = = = = = = =// 4: Escaped tilde //- - - - - - - - -// ~foo\~ //- - - - - - - - -//

~foo~

//= = = = = = = = = = = = = = = = = = = = = = = =// 5: Non-breaking space entity //- - - - - - - - -// ~foo bar~ //- - - - - - - - -//

foo bar

//= = = = = = = = = = = = = = = = = = = = = = = =// 6: Non-breaking space UTF-8 //- - - - - - - - -// ~foo bar~ //- - - - - - - - -//

foo bar

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

text H2O

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

H2O text

//= = = = = = = = = = = = = = = = = = = = = = = =// 9: Check for a direct conflict with strikethrough //- - - - - - - - -// ~~foobar~~ //- - - - - - - - -//

foobar

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

~~x~foobar~~~

//= = = = = = = = = = = = = = = = = = = = = = = =//