-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Lexical][Meta] Add meta intern static docs config #6302
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
markdown: { | ||
format: 'md', | ||
preprocessor: ({fileContent}) => | ||
fileContent.replaceAll( | ||
'https://stackblitz.com/github/facebook/lexical/tree/main/', | ||
STACKBLITZ_PREFIX, | ||
), | ||
}, | ||
|
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.
this recent change is breaking JSX rendering in MD files and should be revisited 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.
have you tried just removing the format: 'md',
?
markdown: { | ||
format: 'md', | ||
preprocessor: ({fileContent}) => | ||
fileContent.replaceAll( | ||
'https://stackblitz.com/github/facebook/lexical/tree/main/', | ||
STACKBLITZ_PREFIX, | ||
), | ||
}, | ||
|
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.
it looks like this update to docusaurus-plugin-internaldocs-fb is switching from a markdown to mdx, so removing that configuration override should resolve the problem without throwing away the preprocessor which is useful for testing new examples in preview environments.
markdown: {
preprocessor: ({fileContent}) =>
fileContent.replaceAll(
'https://stackblitz.com/github/facebook/lexical/tree/main/',
STACKBLITZ_PREFIX,
),
},
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.
this does the job indeed. Thanks @etrepum Bob!
WHAT
WHY