diff --git a/apps/docs/src/app/[...slug]/page.tsx b/apps/docs/src/app/[...slug]/page.tsx index f3fbe952..8e28a8a4 100644 --- a/apps/docs/src/app/[...slug]/page.tsx +++ b/apps/docs/src/app/[...slug]/page.tsx @@ -17,7 +17,7 @@ type MarkdownHeading = { }; const extractHeadingsFromMdx = (raw: string): MarkdownHeading[] => { - const regXHeader = /#{1,6}.+/g; + const regXHeader = /#{1,6}\s.+/g; return ( raw.match(regXHeader)?.map((item) => {