1
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:
2025-04-07 12:11:04 -04:00
parent 80793c7330
commit 53d6f57699
19 changed files with 256 additions and 300 deletions

View File

@@ -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>
);