File tree Expand file tree Collapse file tree 5 files changed +5
-9
lines changed
src/new-components/markdown-components Expand file tree Collapse file tree 5 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ import { getHeadingMeta } from "../../utils";
55export const Heading1 = ( { children } : any ) => {
66 const [ content , id ] = getHeadingMeta ( children ) ;
77 return (
8- < Heading nativeID = "DocSearch- h1" fontSize = "3xl" color = { useColorModeValue ( "gray.700" , "gray.300" ) } />
8+ < Heading nativeID = "h1" fontSize = "3xl" color = { useColorModeValue ( "gray.700" , "gray.300" ) } />
99 ) ;
1010} ;
Original file line number Diff line number Diff line change @@ -11,13 +11,12 @@ export const Heading2 = ({ children }: any) => {
1111 { ( { isHovered } ) => {
1212 return (
1313 < HStack alignItems = "center" space = "2" >
14- < Heading display = "none" nativeID = "DocSearch-h2" > { content } </ Heading >
1514 < Heading
1615 fontSize = "2xl"
1716 _dark = { { color : "gray.300" } }
1817 _light = { { color : "gray.700" } }
1918 // @ts -ignore
20- nativeID = { id }
19+ nativeID = { "h2-" + id }
2120 >
2221 { content }
2322 </ Heading >
Original file line number Diff line number Diff line change @@ -10,14 +10,13 @@ export const Heading3 = ({ children }: any) => {
1010 { ( { isHovered } ) => {
1111 return (
1212 < HStack alignItems = "center" space = "2" >
13- < Heading display = "none" nativeID = "DocSearch-h3" > { content } </ Heading >
1413 < Heading
1514 fontSize = "xl"
1615 fontWeight = "normal"
1716 _light = { { color : "gray.700" } }
1817 _dark = { { color : "gray.300" } }
1918 // @ts -ignore
20- nativeID = { id }
19+ nativeID = { "h3-" + id }
2120 >
2221 { content }
2322 </ Heading >
Original file line number Diff line number Diff line change @@ -6,13 +6,12 @@ export const Heading4 = ({ children }: any) => {
66 const [ content , id ] = getHeadingMeta ( children ) ;
77 return (
88 < >
9- < Heading display = "none" nativeID = "DocSearch-h4" > { content } </ Heading >
109 < Heading
1110 my = "2"
1211 fontSize = "md"
1312 color = { useColorModeValue ( "gray.700" , "gray.300" ) }
1413 // @ts -ignore
15- nativeID = { id }
14+ nativeID = { "h4" + id }
1615 >
1716 { content }
1817 </ Heading >
Original file line number Diff line number Diff line change @@ -6,12 +6,11 @@ export const Heading5 = ({ children }: any) => {
66 const [ content , id ] = getHeadingMeta ( children ) ;
77 return (
88 < >
9- < Heading display = "none" nativeID = "DocSearch-h5" > { content } </ Heading >
109 < Heading
1110 fontSize = "md"
1211 color = { useColorModeValue ( "gray.700" , "gray.300" ) }
1312 // @ts -ignore
14- nativeID = { id }
13+ nativeID = { "h5" + id }
1514 >
1615 { content }
1716 </ Heading >
You can’t perform that action at this time.
0 commit comments