Skip to content

Commit d48ce33

Browse files
authored
Add hover links to headings level 4 and 5
Add to heading levels 4 and 5 the same hover-over links and clickable-ness that heading levels 1-3 enjoy. This does not add them to the in-page table of contents, but simply lets users easily copy deep links straight to the sections.
1 parent 68bbae2 commit d48ce33

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/MdxComponents.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ const MdxComponents = (version?: string) => {
5353
h3: (props: any) => {
5454
return <Heading level="3" id={props.id} props={props} />;
5555
},
56+
h4: (props: any) => {
57+
return <Heading level="4" id={props.id} props={props} />;
58+
},
59+
h5: (props: any) => {
60+
return <Heading level="5" id={props.id} props={props} />;
61+
},
5662
img: (props: any) => {
5763
return <img className="rounded-xl" {...props} />;
5864
},

0 commit comments

Comments
 (0)