File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/new-components/markdown-components Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ const checkHeading = (headingLevelMap: any) => {
5656 result . push ( {
5757 level : headingLevelMap [ i ] . level ,
5858 title : headingLevelMap [ i ] . title ,
59- id : headingLevelMap [ i ] . id ,
59+ id : "h" + ( headingLevelMap [ i ] . level + 1 ) + "-" + headingLevelMap [ i ] . id ,
6060 } ) ;
6161 }
6262 }
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export const Heading2 = ({ children }: any) => {
2121 { content }
2222 </ Heading >
2323 { isHovered && (
24- < Link href = { "#" + id } >
24+ < Link href = { "#" + "h2-" + id } >
2525 < Icon as = { Fontisto } name = "link" color = "coolGray.500" size = "4" />
2626 </ Link >
2727 ) }
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export const Heading3 = ({ children }: any) => {
2121 { content }
2222 </ Heading >
2323 { isHovered && (
24- < Link href = { "#" + id } >
24+ < Link href = { "#" + "h3-" + id } >
2525 < Icon
2626 as = { Fontisto }
2727 name = "link"
You can’t perform that action at this time.
0 commit comments