-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
refactor(theme-classic): cleanup of code blocks #6987
Conversation
@@ -40,7 +40,6 @@ export default function CopyButton({code}: Props): JSX.Element { | |||
description: 'The ARIA label for copy code blocks button', | |||
}) | |||
} | |||
// @todo: check it again later |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site settings. |
The |
As I can see, MDX doesn't produce any docusaurus/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx Lines 104 to 105 in 4c0914c
|
In docusaurus/packages/docusaurus-theme-classic/src/theme/MDXComponents/Code.tsx Lines 32 to 37 in c42f22b
And |
Uh-huh, I get it, but then why are we trying to manually add a CSS class with language? Does it mean that |
Because we allow users to use |
🤪 sorry but not sure to understand if this is ready to merge and you both agree or not? That looks good to me but not 100% sure about the className change |
The current change looks fair to me. I think |
Motivation
Just small cleanups in the code.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Preview (tests pages)
Related PRs