Skip to content

Commit c716047

Browse files
committed
adjust header classes in rendered markdown
1 parent f1f4001 commit c716047

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scaladoc/src/dotty/tools/scaladoc/tasty/comments/markdown/SectionRenderingExtension.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ object SectionRenderingExtension extends HtmlRenderer.HtmlRendererExtension:
2727
val attributes = Attributes()
2828
val headerClass: String = header.getLevel match
2929
case 1 => "h500"
30-
case 2 => "h300"
31-
case 3 => "h200"
32-
case 4 => "h100"
30+
case 2 => "h500"
31+
case 3 => "h400"
32+
case 4 => "h300"
3333
case _ => "h50"
3434
attributes.addValue(AttributeImpl.of("class", headerClass))
3535
val embeddedAttributes = EmbeddedAttributeProvider.EmbeddedNodeAttributes(header, attributes)

0 commit comments

Comments
 (0)