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

[code-infra] Remove warnings in docs:api #37858

Merged
merged 2 commits into from
Jul 12, 2023

Conversation

alexfauquette
Copy link
Member

@alexfauquette alexfauquette commented Jul 7, 2023

@mui-bot
Copy link

mui-bot commented Jul 7, 2023

Netlify deploy preview

https://deploy-preview-37858--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against aaaa499

@alexfauquette alexfauquette added the core Infrastructure work going on behind the scenes label Jul 7, 2023
@oliviertassinari oliviertassinari added scope: docs-infra Specific to the docs-infra product scope: code-infra Specific to the core-infra product and removed scope: docs-infra Specific to the docs-infra product labels Jul 7, 2023
@@ -188,7 +188,7 @@ function getDescription(markdown) {
* @param {string} markdown
*/
function renderInline(markdown) {
return marked.parseInline(markdown);
return marked.parseInline(markdown, { headerIds: false, mangle: false });
Copy link
Member

Choose a reason for hiding this comment

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

We could hoist markedOptions (without the renderer) and use it in renderInline for consistency.

Copy link
Member Author

Choose a reason for hiding this comment

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

I moved this markedOptions to the top of the file with regexp definitions

@michaldudak michaldudak merged commit 54c4992 into mui:master Jul 12, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes scope: code-infra Specific to the core-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants