The expected output when rendering index.html is:
<!doctype html> <head> <title>example</title> </head> <body> <h2>before</h2> <h2><span>start</span> <span>the middle</span> <span>end</span></h2> <h2>after</h2> </body> </html>
The expected output when rendering index2.html is:
<!doctype html> <head> <title>example</title> </head> <body> <h2>before</h2> <h2>after</h2> </body> </html>
The expected output when rendering index3.html is:
<!doctype html> <head> <title>example</title> </head> <body> <h2>before</h2> <h2><span>start</span> <span>right in</span> <span>the middle</span> <span>end</span></h2> <h2>after</h2> </body> </html>