Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions remote-content/remote-sources/repo-transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ function getInternalGuidePath(githubUrl) {
*/
function applyBasicMdxFixes(content) {
return content
// Strip markdownlint directives at the top of the file (they break MDX import placement)
.replace(/^<!--\s*markdownlint-disable[^>]*-->\s*\n?/i, '')
// Convert GitHub-style callouts to Docusaurus admonitions
.replace(/^> \[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]\s*\n((?:> .*\n?)*)/gm, (match, type, content) => {
// Map GitHub callout types to Docusaurus admonition types
Expand Down