@@ -140,25 +140,26 @@ fn test_header() {
140
140
141
141
t (
142
142
"# Foo bar" ,
143
- "<h1 id=\" foo-bar\" class=\" section-header\" >\
144
- <a href=\" #foo-bar\" >Foo bar</a></h1>",
143
+ "<h1 id=\" foo-bar\" class=\" section-header\" ><a href=\" #foo-bar\" >Foo bar</a></h1>" ,
145
144
) ;
146
145
t (
147
146
"## Foo-bar_baz qux" ,
148
- "<h2 id=\" foo-bar_baz-qux\" class=\" section-\
149
- header \" > <a href=\" #foo-bar_baz-qux\" >Foo-bar_baz qux</a></h2>",
147
+ "<h2 id=\" foo-bar_baz-qux\" class=\" section-header \" >
148
+ <a href=\" #foo-bar_baz-qux\" >Foo-bar_baz qux</a></h2>" ,
150
149
) ;
151
150
t (
152
151
"### **Foo** *bar* baz!?!& -_qux_-%" ,
153
152
"<h3 id=\" foo-bar-baz--qux-\" class=\" section-header\" >\
154
- <a href=\" #foo-bar-baz--qux-\" ><strong>Foo</strong> \
155
- <em>bar</em> baz!?!& -<em>qux</em>-%</a></h3>",
153
+ <a href=\" #foo-bar-baz--qux-\" ><strong>Foo</strong> \
154
+ <em>bar</em> baz!?!& -<em>qux</em>-%</a>\
155
+ </h3>",
156
156
) ;
157
157
t (
158
158
"#### **Foo?** & \\ *bar?!* _`baz`_ ❤ #qux" ,
159
159
"<h4 id=\" foo--bar--baz--qux\" class=\" section-header\" >\
160
- <a href=\" #foo--bar--baz--qux\" ><strong>Foo?</strong> & *bar?!* \
161
- <em><code>baz</code></em> ❤ #qux</a></h4>",
160
+ <a href=\" #foo--bar--baz--qux\" ><strong>Foo?</strong> & *bar?!* \
161
+ <em><code>baz</code></em> ❤ #qux</a>\
162
+ </h4>",
162
163
) ;
163
164
}
164
165
@@ -174,38 +175,32 @@ fn test_header_ids_multiple_blocks() {
174
175
t (
175
176
& mut map,
176
177
"# Example" ,
177
- "<h1 id=\" example\" class=\" section-header\" >\
178
- <a href=\" #example\" >Example</a></h1>",
178
+ "<h1 id=\" example\" class=\" section-header\" ><a href=\" #example\" >Example</a></h1>" ,
179
179
) ;
180
180
t (
181
181
& mut map,
182
182
"# Panics" ,
183
- "<h1 id=\" panics\" class=\" section-header\" >\
184
- <a href=\" #panics\" >Panics</a></h1>",
183
+ "<h1 id=\" panics\" class=\" section-header\" ><a href=\" #panics\" >Panics</a></h1>" ,
185
184
) ;
186
185
t (
187
186
& mut map,
188
187
"# Example" ,
189
- "<h1 id=\" example-1\" class=\" section-header\" >\
190
- <a href=\" #example-1\" >Example</a></h1>",
188
+ "<h1 id=\" example-1\" class=\" section-header\" ><a href=\" #example-1\" >Example</a></h1>" ,
191
189
) ;
192
190
t (
193
191
& mut map,
194
192
"# Main" ,
195
- "<h1 id=\" main-1\" class=\" section-header\" >\
196
- <a href=\" #main-1\" >Main</a></h1>",
193
+ "<h1 id=\" main-1\" class=\" section-header\" ><a href=\" #main-1\" >Main</a></h1>" ,
197
194
) ;
198
195
t (
199
196
& mut map,
200
197
"# Example" ,
201
- "<h1 id=\" example-2\" class=\" section-header\" >\
202
- <a href=\" #example-2\" >Example</a></h1>",
198
+ "<h1 id=\" example-2\" class=\" section-header\" ><a href=\" #example-2\" >Example</a></h1>" ,
203
199
) ;
204
200
t (
205
201
& mut map,
206
202
"# Panics" ,
207
- "<h1 id=\" panics-1\" class=\" section-header\" >\
208
- <a href=\" #panics-1\" >Panics</a></h1>",
203
+ "<h1 id=\" panics-1\" class=\" section-header\" ><a href=\" #panics-1\" >Panics</a></h1>" ,
209
204
) ;
210
205
}
211
206
0 commit comments