Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap heading text in anchor tag and fixed subheading-anchor style #96

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

FranciscoMoretti
Copy link

@FranciscoMoretti FranciscoMoretti commented Apr 14, 2023

Clickable heading anchors

Headings were not linked previously because the anchor tag didn't wrap the header text.

By using the wrap behavior, the headers are clickable. Fixes #94

Headings anchor indicators

The css class subheading-anchor was not present in the project. I've created a simple style for subheading anchors. Feel free to suggest a different one.

To define the tailwind style in contentlayer.config.js I added that file to tailnwind.config.js content.

Info:

@vercel
Copy link

vercel bot commented Apr 14, 2023

Someone is attempting to deploy a commit to a Personal Account owned by @shadcn on Vercel.

@shadcn first needs to authorize it.

@FranciscoMoretti FranciscoMoretti changed the title Wrap heading text in anchor tag Wrap heading text in anchor tag and fixed subheading-anchor style Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rehypeAutolinkHeadings doesn't wrap the heading text
1 participant