mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-05-15 21:34:26 -04:00
fix blockquotes
This commit is contained in:
@@ -61,7 +61,7 @@ const Heading = ({ as, id, divider, children, ...rest }: HeadingProps) => {
|
||||
<H as={as} divider={divider ?? as === "h2"} id={id} {...rest}>
|
||||
{children}
|
||||
|
||||
{/* add anchor link to H2s and H3s. ID is already generated by rehype-slug. `#` character inserted via CSS. */}
|
||||
{/* add anchor link to H2s and H3s. ID is either provided or automatically generated by rehype-slug. */}
|
||||
{id && (as === "h2" || as === "h3") && <Anchor id={id} title={innerText(children)} />}
|
||||
</H>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user