Skip to content

Commit

Permalink
[code-infra] Remove warnings in docs:api
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Jul 7, 2023
1 parent b00bdc7 commit 1896226
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/scripts/reportBrokenLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const getPageLinks = (markdown) => {
hrefs.push(href);
}
};
marked(markdown, { renderer });
marked(markdown, { mangle: false, headerIds: false, renderer });
return hrefs;
};

Expand Down
2 changes: 1 addition & 1 deletion packages/markdown/parseMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}

// Help rank mui.com on component searches first.
Expand Down

0 comments on commit 1896226

Please sign in to comment.