@@ -72,10 +72,11 @@ const testData = [
7272 html : '<h1>Sample Markdown with YAML info' +
7373 '<span><a class="mark" href="#foo_sample_markdown_with_yaml_info" ' +
7474 ' id="foo_sample_markdown_with_yaml_info">#</a></span></h1>' +
75- '<h2>Foobar<span><a class="mark" href="#foo_foobar" ' +
75+ '<section>< h2>Foobar<span><a class="mark" href="#foo_foobar" ' +
7676 'id="foo_foobar">#</a></span></h2>' +
7777 '<div class="api_metadata"><span>Added in: v1.0.0</span></div> ' +
7878 '<p>Describe <code>Foobar</code> in more detail here.</p>' +
79+ '</section><section>' +
7980 '<h2>Foobar II<span><a class="mark" href="#foo_foobar_ii" ' +
8081 'id="foo_foobar_ii">#</a></span></h2><div class="api_metadata">' +
8182 '<details class="changelog"><summary>History</summary>' +
@@ -86,16 +87,18 @@ const testData = [
8687 'an arrow function.</p></td></tr></tbody></table></details></div> ' +
8788 '<p>Describe <code>Foobar II</code> in more detail here.' +
8889 '<a href="http://man7.org/linux/man-pages/man1/fg.1.html"><code>fg(1)' +
89- '</code></a></p><h2>Deprecated thingy<span><a class="mark" ' +
90+ '</code></a></p></section><section>' +
91+ '<h2>Deprecated thingy<span><a class="mark" ' +
9092 'href="#foo_deprecated_thingy" id="foo_deprecated_thingy">#</a>' +
9193 '</span></h2><div class="api_metadata"><span>Added in: v1.0.0</span>' +
9294 '<span>Deprecated since: v2.0.0</span></div><p>Describe ' +
9395 '<code>Deprecated thingy</code> in more detail here.' +
9496 '<a href="http://man7.org/linux/man-pages/man1/fg.1p.html"><code>fg(1p)' +
95- '</code></a></p><h2>Something<span><a class="mark" href="#foo_something' +
97+ '</code></a></p></section><section>' +
98+ '<h2>Something<span><a class="mark" href="#foo_something' +
9699 '" id="foo_something">#</a></span></h2> ' +
97100 '<!-- This is not a metadata comment --> ' +
98- '<p>Describe <code>Something</code> in more detail here. </p>'
101+ '<p>Describe <code>Something</code> in more detail here. </p></section> '
99102 } ,
100103 {
101104 file : fixtures . path ( 'sample_document.md' ) ,
@@ -110,16 +113,18 @@ const testData = [
110113 file : fixtures . path ( 'document_with_links.md' ) ,
111114 html : '<h1>Usage and Example<span><a class="mark"' +
112115 'href="#foo_usage_and_example" id="foo_usage_and_example">#</a>' +
113- '</span></h1><h2>Usage<span><a class="mark" href="#foo_usage"' +
116+ '</span></h1><section>< h2>Usage<span><a class="mark" href="#foo_usage"' +
114117 'id="foo_usage">#</a></span></h2><p><code>node \\[options\\] index.js' +
115118 '</code></p><p>Please see the<a href="cli.html#cli-options">' +
116- 'Command Line Options</a>document for more information.</p><h2>' +
119+ 'Command Line Options</a>document for more information.</p>' +
120+ '</section><section><h2>' +
117121 'Example<span><a class="mark" href="#foo_example" id="foo_example">' +
118122 '#</a></span></h2><p>An example of a<a href="example.html">' +
119123 'webserver</a>written with Node.js which responds with<code>' +
120- '\'Hello, World!\'</code>:</p><h2>See also<span><a class="mark"' +
124+ '\'Hello, World!\'</code>:</p></section><section>' +
125+ '<h2>See also<span><a class="mark"' +
121126 'href="#foo_see_also" id="foo_see_also">#</a></span></h2><p>Check' +
122- 'out also<a href="https://nodejs.org/">this guide</a></p>'
127+ 'out also<a href="https://nodejs.org/">this guide</a></p></section> '
123128 } ,
124129 {
125130 file : fixtures . path ( 'document_with_special_heading.md' ) ,
0 commit comments