Skip to content

Commit f47b37f

Browse files
authored
Merge pull request #246 from GeekyAnts/staging
Staging
2 parents f0194da + b1ce992 commit f47b37f

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

src/new-components/markdown-components/Heading1.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import { getHeadingMeta } from "../../utils";
55
export 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
};

src/new-components/markdown-components/Heading2.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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>

src/new-components/markdown-components/Heading3.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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>

src/new-components/markdown-components/Heading4.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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>

src/new-components/markdown-components/Heading5.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)