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(mdx-loader): make headings containing links properly formatted in ToC #6712

Merged
merged 1 commit into from
Feb 18, 2022

Conversation

Josh-Cena
Copy link
Collaborator

Motivation

Consider the heading #### [`guard-for-in`](https://eslint.org/docs/rules/guard-for-in). Right now, the inline code is dropped in the final ToC:

image

...because links aren't specially handled in the ToC, and everything in it gets simply formatted as plain string. However, it should be better formatted as <code>method</code>.

Have you read the Contributing Guidelines on pull requests?

Yes

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Feb 18, 2022
@Josh-Cena Josh-Cena added pr: bug fix This PR fixes a bug in a past release. and removed CLA Signed Signed Facebook CLA labels Feb 18, 2022
@netlify
Copy link

netlify bot commented Feb 18, 2022

✔️ [V2]

🔨 Explore the source changes: 553e8fa

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/620f093161d2120007f7bada

😎 Browse the preview: https://deploy-preview-6712--docusaurus-2.netlify.app

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 59
🟢 Accessibility 100
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 92

Lighthouse ran on https://deploy-preview-6712--docusaurus-2.netlify.app/

@Josh-Cena Josh-Cena merged commit 692680d into main Feb 18, 2022
@Josh-Cena Josh-Cena deleted the jc/stringify-link branch February 18, 2022 02:57
@github-actions
Copy link

Size Change: 0 B

Total Size: 781 kB

ℹ️ View Unchanged
Filename Size
website/.docusaurus/globalData.json 48 kB
website/build/assets/css/styles.********.css 106 kB
website/build/assets/js/main.********.js 590 kB
website/build/index.html 37.6 kB

compressed-size-action

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

Successfully merging this pull request may close these issues.

2 participants