Skip to content

Commit 10dab38

Browse files
committed
github: fix .MD
1 parent 5dda161 commit 10dab38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sites/github.com.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ var copyMarkdownSnippetFromGithub = (function(){ // ES6 modules are not supporte
8181
}
8282
}
8383

84-
if (filePath.endsWith('.md')){
84+
if (filePath.toLowerCase().endsWith('.md')){
8585
reviewLink = reviewLink.replace('?plain=1', '').replace('#', '?plain=1#');
8686
}
8787

@@ -106,7 +106,7 @@ var copyMarkdownSnippetFromGithub = (function(){ // ES6 modules are not supporte
106106
let syntax = '';
107107

108108
// disabled if .md file because it is rendered on GitHub as HTML, not markdown.
109-
if (!filePath.endsWith('.md')){
109+
if (!filePath.toLowerCase().endsWith('.md')){
110110
syntax = detectSyntaxByFilename(filePath);
111111
}
112112

0 commit comments

Comments
 (0)