@@ -159,25 +159,22 @@ fn test_header() {
159
159
assert_eq ! ( output, expect, "original: {}" , input) ;
160
160
}
161
161
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>" ) ;
166
163
t (
167
164
"## Foo-bar_baz qux" ,
168
- "<h3 id=\" foo-bar_baz-qux\" class= \" section-header \" >\
165
+ "<h3 id=\" foo-bar_baz-qux\" >\
169
166
<a href=\" #foo-bar_baz-qux\" >Foo-bar_baz qux</a></h3>",
170
167
) ;
171
168
t (
172
169
"### **Foo** *bar* baz!?!& -_qux_-%" ,
173
- "<h4 id=\" foo-bar-baz--qux-\" class= \" section-header \" >\
170
+ "<h4 id=\" foo-bar-baz--qux-\" >\
174
171
<a href=\" #foo-bar-baz--qux-\" ><strong>Foo</strong> \
175
172
<em>bar</em> baz!?!& -<em>qux</em>-%</a>\
176
173
</h4>",
177
174
) ;
178
175
t (
179
176
"#### **Foo?** & \\ *bar?!* _`baz`_ ❤ #qux" ,
180
- "<h5 id=\" foo--bar--baz--qux\" class= \" section-header \" >\
177
+ "<h5 id=\" foo--bar--baz--qux\" >\
181
178
<a href=\" #foo--bar--baz--qux\" ><strong>Foo?</strong> & *bar?!* \
182
179
<em><code>baz</code></em> ❤ #qux</a>\
183
180
</h5>",
@@ -201,36 +198,12 @@ fn test_header_ids_multiple_blocks() {
201
198
assert_eq ! ( output, expect, "original: {}" , input) ;
202
199
}
203
200
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>" ) ;
234
207
}
235
208
236
209
#[ test]
0 commit comments