Skip to content

Commit 7eb0c71

Browse files
stevebyansorawee
authored andcommitted
replace use of html tt with span of class 'stt'
HTML5 has deprecated the 'tt' tag. This commit replaces it with a span of class 'stt'. Note that the Scribble @tt function has already been fixed to use a span of class 'tt''. These two remaining uses are styling the nbsp separator between the section heading number and the section heading text. One use is in the tocsub link for the section, and the other is in the section heading itself.
1 parent 49bb54d commit 7eb0c71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scribble-lib/scribble/html-render.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@
767767
,@(format-number
768768
(collected-info-number
769769
(part-collected-info p ri))
770-
'((tt nbsp)))))
770+
'((span ([class "stt"]) nbsp)))))
771771
'(""))
772772
,@(if (toc-element? p)
773773
(render-content (toc-element-toc-content p)
@@ -1174,7 +1174,7 @@
11741174
'())
11751175
(list '[class "heading"])
11761176
(style->attribs (part-style d)))
1177-
,@(format-number number '((tt nbsp)))
1177+
,@(format-number number '((span ([class "stt"]) nbsp)))
11781178
,@(map (lambda (t)
11791179
`(a ([name ,(format "~a" (anchor-name (add-current-tag-prefix (tag-key t ri))))])))
11801180
(part-tags d))

0 commit comments

Comments
 (0)