We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d53acd commit cb57660Copy full SHA for cb57660
tools/gulp/tasks/docs.ts
@@ -82,7 +82,9 @@ function transformMarkdownFiles(buffer: Buffer, file: any): string {
82
83
/** Fixes paths in the markdown files to work in the material-docs-io. */
84
function fixMarkdownDocLinks(link: string, filePath: string): string {
85
- if (link.startsWith('http') && filePath.indexOf('guides/') === -1) {
+ // As for now, only markdown links that are relative and inside of the guides/ directory
86
+ // will be rewritten.
87
+ if (!filePath.includes(path.normalize('guides/')) || link.startsWith('http')) {
88
return link;
89
}
90
0 commit comments