We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dda161 commit 10dab38Copy full SHA for 10dab38
sites/github.com.js
@@ -81,7 +81,7 @@ var copyMarkdownSnippetFromGithub = (function(){ // ES6 modules are not supporte
81
}
82
83
84
- if (filePath.endsWith('.md')){
+ if (filePath.toLowerCase().endsWith('.md')){
85
reviewLink = reviewLink.replace('?plain=1', '').replace('#', '?plain=1#');
86
87
@@ -106,7 +106,7 @@ var copyMarkdownSnippetFromGithub = (function(){ // ES6 modules are not supporte
106
let syntax = '';
107
108
// disabled if .md file because it is rendered on GitHub as HTML, not markdown.
109
- if (!filePath.endsWith('.md')){
+ if (!filePath.toLowerCase().endsWith('.md')){
110
syntax = detectSyntaxByFilename(filePath);
111
112
0 commit comments