Skip to content

Commit bae5999

Browse files
committed
fix(): bumb up text headings to minimum lvl 2
1 parent 1ba339f commit bae5999

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Text/nodes/Heading.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface Props {
77
88
const { node } = Astro.props;
99
const { style, level = 2 } = node;
10-
const Tag = `h${level}` as 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
10+
const Tag = `h${Math.max(2, level)}` as 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
1111
---
1212
<Tag class={style}><slot /></Tag>
1313

0 commit comments

Comments
 (0)