Skip to content

feat: Make heading links work (#20) #22

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

Merged
merged 1 commit into from
Dec 1, 2022
Merged

feat: Make heading links work (#20) #22

merged 1 commit into from
Dec 1, 2022

Conversation

andrew-polk
Copy link
Contributor

@andrew-polk andrew-polk commented Dec 1, 2022

This change is Reviewable

@andrew-polk andrew-polk force-pushed the HeadingLinks branch 2 times, most recently from 1b7ae59 to 1e450ca Compare December 1, 2022 17:07
Copy link

@gmartin7 gmartin7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question, probably fine.

let convertedLink = layoutStrategy.getLinkPathForPage(page);

// Include the fragment (# and after) if it exists
const { fragmentId } = parseLinkId(url);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you don't need baseLinkId here too, just to keep the destructuring happy?

Copy link
Contributor Author

@andrew-polk andrew-polk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @gmartin7)


src/links.ts line 18 at r1 (raw file):

Previously, gmartin7 (Gordon Martin) wrote…

I guess you don't need baseLinkId here too, just to keep the destructuring happy?

Nope.

@andrew-polk andrew-polk merged commit cc93d95 into main Dec 1, 2022
@andrew-polk andrew-polk deleted the HeadingLinks branch December 1, 2022 17:29
Copy link

@gmartin7 gmartin7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@github-actions
Copy link

github-actions bot commented Dec 1, 2022

🎉 This PR is included in version 0.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants