This adds a bunch of tests to better exercise the HTML rendering and to be able to track any changes in its behavior. This includes a new `check_all_main_files` to more conveniently check the HTML content of every chapter in a book.
11 lines
No EOL
810 B
HTML
11 lines
No EOL
810 B
HTML
<h1 id="chapter-1"><a class="header" href="#chapter-1">Chapter 1</a></h1>
|
|
<h2 id="some-title"><a class="header" href="#some-title">Some title</a></h2>
|
|
<p>See <a href="chapter_2.html#some-title">other</a></p>
|
|
<p>See <a href="chapter_1.html#some-title">this</a></p>
|
|
<p>See <a href="chapter_1.html#some-title">this anchor only</a></p>
|
|
<div style="break-before: page; page-break-before: always;"></div><h1 id="chapter-2"><a class="header" href="#chapter-2">Chapter 2</a></h1>
|
|
<h2 id="some-title-1"><a class="header" href="#some-title-1">Some title</a></h2>
|
|
<p>See <a href="chapter_1.html#some-title">other</a></p>
|
|
<p>See <a href="chapter_2.html#some-title">this</a></p>
|
|
<p>See <a href="chapter_2.html#some-title">this anchor only</a></p>
|
|
<p><a href="chapter_1.html#some-title">Works with HTML extension too</a></p> |