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(v2): toc should not be broken for heading with html inline code #2067

Merged
merged 1 commit into from
Nov 29, 2019

Conversation

endiliey
Copy link
Contributor

@endiliey endiliey commented Nov 29, 2019

Motivation

Fix broken TOC if heading has html inside inline code.
Value need to be escaped inside inline code so that it wont be mistaken as html

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

Before
before - broken toc

After
after - non broken toc

Newly added test passes, previous snapshot tests for mdx-loader rightTOC does not change

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

Deploy preview for docusaurus-preview ready!

Built with commit d611603

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

@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit d611603

https://deploy-preview-2067--docusaurus-2.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.

❤️

@yangshun yangshun merged commit d614386 into master Nov 29, 2019
@endiliey endiliey deleted the endi/toc branch November 30, 2019 07:40
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
Development

Successfully merging this pull request may close these issues.

None yet

4 participants