Skip to content

Use gatsby-remark-autolink-headers to get improved heading ids #85

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 3 commits into from
Jul 7, 2020

Conversation

charmander
Copy link
Collaborator

Fixes formatted text (e.g. inline code) being rendered as “[object Object]” (#84), and multiple text children (e.g. new Pool([config: object]), for some reason) being rendered with commas. Also now compatible with GitHub!

Can be used to add link icons beside each heading later by removing icon: false from its configuration (but needs additional CSS).

Fixes formatted text (e.g. inline code) being rendered as “[object Object]” (#84), and multiple text children (e.g. `new Pool([config: object])`, for some reason) being rendered with commas. Also now compatible with GitHub!

Can be used to add link icons beside each heading later by removing `icon: false` from its configuration (but needs additional CSS).
@charmander charmander requested a review from brianc June 21, 2020 09:31
@netlify
Copy link

netlify bot commented Jun 21, 2020

Hey! A preview of the changes is deployed on netlify to take a look at! :)

Built with commit 81d38cc

https://deploy-preview-85--hopeful-clarke-f36d36.netlify.app

@brianc
Copy link
Owner

brianc commented Jul 7, 2020

Howdy - when I test the deployed page https://deploy-preview-85--hopeful-clarke-f36d36.netlify.app some of the side bar links on the right nav don't work for me anymore:

links

Any idea why some links aren't working on some of these sections for me now?

@charmander
Copy link
Collaborator Author

I never noticed that sidebar :D

Fixing, thanks!

Fixes right sidebar for id changes after introduction of gatsby-remark-autolink-headers.
@brianc
Copy link
Owner

brianc commented Jul 7, 2020

Beautiful! You're amazing. Thank you! ❤️

@brianc brianc merged commit db26298 into master Jul 7, 2020
@brianc brianc deleted the fixed-header-ids branch July 7, 2020 21:33
@brianc
Copy link
Owner

brianc commented Jul 7, 2020

also... @charmander do you want merge privileges here? You have 'em on the main repo - makes sense to have 'em here too!

@charmander
Copy link
Collaborator Author

I already have them, but I’ll take that as a hint to merge more of the uncontroversial docs PRs :D

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.

2 participants