fix: slugging
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user