@@ -24,34 +24,34 @@ def accept_document
2424 end
2525
2626 def accept_heading
27- assert_equal "\n <a id=\" label-Hello\" class=\" legacy-anchor\" ></a >\n <h5 id=\" hello\" ><a href=\" #hello\" >Hello</a></h5>\n " , @to . res . join
27+ assert_equal "\n <span id=\" label-Hello\" class=\" legacy-anchor\" ></span >\n <h5 id=\" hello\" ><a href=\" #hello\" >Hello</a></h5>\n " , @to . res . join
2828 end
2929
3030 def accept_heading_1
31- assert_equal "\n <a id=\" label-Hello\" class=\" legacy-anchor\" ></a >\n <h1 id=\" hello\" ><a href=\" #hello\" >Hello</a></h1>\n " , @to . res . join
31+ assert_equal "\n <span id=\" label-Hello\" class=\" legacy-anchor\" ></span >\n <h1 id=\" hello\" ><a href=\" #hello\" >Hello</a></h1>\n " , @to . res . join
3232 end
3333
3434 def accept_heading_2
35- assert_equal "\n <a id=\" label-Hello\" class=\" legacy-anchor\" ></a >\n <h2 id=\" hello\" ><a href=\" #hello\" >Hello</a></h2>\n " , @to . res . join
35+ assert_equal "\n <span id=\" label-Hello\" class=\" legacy-anchor\" ></span >\n <h2 id=\" hello\" ><a href=\" #hello\" >Hello</a></h2>\n " , @to . res . join
3636 end
3737
3838 def accept_heading_3
39- assert_equal "\n <a id=\" label-Hello\" class=\" legacy-anchor\" ></a >\n <h3 id=\" hello\" ><a href=\" #hello\" >Hello</a></h3>\n " , @to . res . join
39+ assert_equal "\n <span id=\" label-Hello\" class=\" legacy-anchor\" ></span >\n <h3 id=\" hello\" ><a href=\" #hello\" >Hello</a></h3>\n " , @to . res . join
4040 end
4141
4242 def accept_heading_4
43- assert_equal "\n <a id=\" label-Hello\" class=\" legacy-anchor\" ></a >\n <h4 id=\" hello\" ><a href=\" #hello\" >Hello</a></h4>\n " , @to . res . join
43+ assert_equal "\n <span id=\" label-Hello\" class=\" legacy-anchor\" ></span >\n <h4 id=\" hello\" ><a href=\" #hello\" >Hello</a></h4>\n " , @to . res . join
4444 end
4545
4646 def accept_heading_b
4747 inner = "<strong>Hello</strong>"
4848
49- assert_equal "\n <a id=\" label-Hello\" class=\" legacy-anchor\" ></a >\n <h1 id=\" hello\" ><a href=\" #hello\" >#{ inner } </a></h1>\n " ,
49+ assert_equal "\n <span id=\" label-Hello\" class=\" legacy-anchor\" ></span >\n <h1 id=\" hello\" ><a href=\" #hello\" >#{ inner } </a></h1>\n " ,
5050 @to . res . join
5151 end
5252
5353 def accept_heading_suppressed_crossref
54- assert_equal "\n <a id=\" label-Hello\" class=\" legacy-anchor\" ></a >\n <h1 id=\" hello\" ><a href=\" #hello\" >Hello</a></h1>\n " , @to . res . join
54+ assert_equal "\n <span id=\" label-Hello\" class=\" legacy-anchor\" ></span >\n <h1 id=\" hello\" ><a href=\" #hello\" >Hello</a></h1>\n " , @to . res . join
5555 end
5656
5757 def accept_list_end_bullet
@@ -327,7 +327,7 @@ def test_accept_heading_7
327327
328328 @to . accept_heading @RM ::Heading . new ( 7 , 'Hello' )
329329
330- assert_equal "\n <a id=\" label-Hello\" class=\" legacy-anchor\" ></a >\n <h6 id=\" hello\" ><a href=\" #hello\" >Hello</a></h6>\n " , @to . res . join
330+ assert_equal "\n <span id=\" label-Hello\" class=\" legacy-anchor\" ></span >\n <h6 id=\" hello\" ><a href=\" #hello\" >Hello</a></h6>\n " , @to . res . join
331331 end
332332
333333 def test_accept_heading_aref_class
@@ -336,7 +336,7 @@ def test_accept_heading_aref_class
336336
337337 @to . accept_heading head ( 1 , 'Hello' )
338338
339- assert_equal "\n <a id=\" class-foo -label-Hello\" class=\" legacy-anchor\" ></a >\n <h1 id=\" class-foo-hello\" ><a href=\" #class-foo-hello\" >Hello</a></h1>\n " ,
339+ assert_equal "\n <span id=\" class-Foo -label-Hello\" class=\" legacy-anchor\" ></span >\n <h1 id=\" class-foo-hello\" ><a href=\" #class-foo-hello\" >Hello</a></h1>\n " ,
340340 @to . res . join
341341 end
342342
@@ -346,7 +346,7 @@ def test_accept_heading_aref_method
346346
347347 @to . accept_heading @RM ::Heading . new ( 1 , 'Hello' )
348348
349- assert_equal "\n <a id=\" method-i-foo-label-Hello\" class=\" legacy-anchor\" ></a >\n <h1 id=\" method-i-foo-hello\" ><a href=\" #method-i-foo-hello\" >Hello</a></h1>\n " ,
349+ assert_equal "\n <span id=\" method-i-foo-label-Hello\" class=\" legacy-anchor\" ></span >\n <h1 id=\" method-i-foo-hello\" ><a href=\" #method-i-foo-hello\" >Hello</a></h1>\n " ,
350350 @to . res . join
351351 end
352352
0 commit comments