@@ -159,25 +159,22 @@ fn test_header() {
159159 assert_eq ! ( output, expect, "original: {}" , input) ;
160160 }
161161
162- t (
163- "# Foo bar" ,
164- "<h2 id=\" foo-bar\" class=\" section-header\" ><a href=\" #foo-bar\" >Foo bar</a></h2>" ,
165- ) ;
162+ t ( "# Foo bar" , "<h2 id=\" foo-bar\" ><a href=\" #foo-bar\" >Foo bar</a></h2>" ) ;
166163 t (
167164 "## Foo-bar_baz qux" ,
168- "<h3 id=\" foo-bar_baz-qux\" class= \" section-header \" >\
165+ "<h3 id=\" foo-bar_baz-qux\" >\
169166 <a href=\" #foo-bar_baz-qux\" >Foo-bar_baz qux</a></h3>",
170167 ) ;
171168 t (
172169 "### **Foo** *bar* baz!?!& -_qux_-%" ,
173- "<h4 id=\" foo-bar-baz--qux-\" class= \" section-header \" >\
170+ "<h4 id=\" foo-bar-baz--qux-\" >\
174171 <a href=\" #foo-bar-baz--qux-\" ><strong>Foo</strong> \
175172 <em>bar</em> baz!?!& -<em>qux</em>-%</a>\
176173 </h4>",
177174 ) ;
178175 t (
179176 "#### **Foo?** & \\ *bar?!* _`baz`_ ❤ #qux" ,
180- "<h5 id=\" foo--bar--baz--qux\" class= \" section-header \" >\
177+ "<h5 id=\" foo--bar--baz--qux\" >\
181178 <a href=\" #foo--bar--baz--qux\" ><strong>Foo?</strong> & *bar?!* \
182179 <em><code>baz</code></em> ❤ #qux</a>\
183180 </h5>",
@@ -201,36 +198,12 @@ fn test_header_ids_multiple_blocks() {
201198 assert_eq ! ( output, expect, "original: {}" , input) ;
202199 }
203200
204- t (
205- & mut map,
206- "# Example" ,
207- "<h2 id=\" example\" class=\" section-header\" ><a href=\" #example\" >Example</a></h2>" ,
208- ) ;
209- t (
210- & mut map,
211- "# Panics" ,
212- "<h2 id=\" panics\" class=\" section-header\" ><a href=\" #panics\" >Panics</a></h2>" ,
213- ) ;
214- t (
215- & mut map,
216- "# Example" ,
217- "<h2 id=\" example-1\" class=\" section-header\" ><a href=\" #example-1\" >Example</a></h2>" ,
218- ) ;
219- t (
220- & mut map,
221- "# Search" ,
222- "<h2 id=\" search-1\" class=\" section-header\" ><a href=\" #search-1\" >Search</a></h2>" ,
223- ) ;
224- t (
225- & mut map,
226- "# Example" ,
227- "<h2 id=\" example-2\" class=\" section-header\" ><a href=\" #example-2\" >Example</a></h2>" ,
228- ) ;
229- t (
230- & mut map,
231- "# Panics" ,
232- "<h2 id=\" panics-1\" class=\" section-header\" ><a href=\" #panics-1\" >Panics</a></h2>" ,
233- ) ;
201+ t ( & mut map, "# Example" , "<h2 id=\" example\" ><a href=\" #example\" >Example</a></h2>" ) ;
202+ t ( & mut map, "# Panics" , "<h2 id=\" panics\" ><a href=\" #panics\" >Panics</a></h2>" ) ;
203+ t ( & mut map, "# Example" , "<h2 id=\" example-1\" ><a href=\" #example-1\" >Example</a></h2>" ) ;
204+ t ( & mut map, "# Search" , "<h2 id=\" search-1\" ><a href=\" #search-1\" >Search</a></h2>" ) ;
205+ t ( & mut map, "# Example" , "<h2 id=\" example-2\" ><a href=\" #example-2\" >Example</a></h2>" ) ;
206+ t ( & mut map, "# Panics" , "<h2 id=\" panics-1\" ><a href=\" #panics-1\" >Panics</a></h2>" ) ;
234207}
235208
236209#[ test]
0 commit comments