mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-11-14 21:40:49 -05:00
trim some unnecessary dependencies
This commit is contained in:
@@ -19,7 +19,7 @@ const Heading = ({ level, id, divider, className, children, ...rest }: HeadingPr
|
||||
|
||||
{/* add anchor link to H2s and H3s. ID is either provided or automatically generated by rehype-slug. */}
|
||||
{id && (level === 2 || level === 3) && (
|
||||
<HeadingAnchor id={id} title={innerText(children)} className={styles.anchor} />
|
||||
<HeadingAnchor id={id} title={`Jump to "${innerText(children)}"`} className={styles.anchor} />
|
||||
)}
|
||||
</HWild>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user