fix: slugging

This commit is contained in:
2026-03-19 11:26:59 +08:00
parent 71ab7523da
commit d19401373f
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ export const HeadingNode: Component<{
depth: number;
}> = (props) => {
const navigate = useNavigate();
const anchor = props.node.title.toLowerCase().replace(/\s+/g, "-");
const anchor = props.node.id || "";
const href = `${props.basePath}#${anchor}`;
const handleClick = (e: MouseEvent) => {