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

fix(v1): consistent slug & hash-link generation #2019

Merged
merged 1 commit into from Nov 20, 2019
Merged

fix(v1): consistent slug & hash-link generation #2019

merged 1 commit into from Nov 20, 2019

Conversation

endiliey
Copy link
Contributor

Motivation

Close #2008
Close #1877
Close #1939

Use GitHub slugger npm package like in v2, because its more consistent and is correct rather than our legacy slug function. According to our site. Its also consistent with v2

Docusaurus uses GitHub Flavored Markdown (GFM).

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

Right TOC and markdown hash link is the same in which it wasn't previously
1
2

Updated tests because that's how GitHub generates the anchors https://gist.github.com/endiliey/a08deae18ed944d5e95e32f219decc98#hello----world

@endiliey endiliey added the pr: bug fix This PR fixes a bug in a past release. label Nov 20, 2019
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Nov 20, 2019
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit 7517450

https://deploy-preview-2019--docusaurus-2.netlify.com

@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit 7517450

https://deploy-preview-2019--docusaurus-preview.netlify.com

Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

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

Wew nice to see you making changes in v1 again

@endiliey
Copy link
Contributor Author

Trying to reduce number of issues open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
4 participants