In my newly created repository I noticed that if you have a readme file called "README.MD" it will be shown in the repository, but the markdown won't be rendered.
This happens because IsReadmeFile is basically case insensitive, but the rendering switch in the pages.go is looking for literal extensions.
+2
-2
Diff
round #0
+2
-2
appview/pages/pages.go
+2
-2
appview/pages/pages.go
···
864
864
rctx.RendererType = markup.RendererTypeRepoMarkdown
865
865
866
866
if params.ReadmeFileName != "" {
867
-
ext := filepath.Ext(params.ReadmeFileName)
867
+
ext := strings.ToLower(filepath.Ext(params.ReadmeFileName))
868
868
switch ext {
869
869
case ".md", ".markdown", ".mdown", ".mkdn", ".mkd":
870
870
params.Raw = false
···
958
958
rctx.RendererType = markup.RendererTypeRepoMarkdown
959
959
960
960
if params.ReadmeFileName != "" {
961
-
ext := filepath.Ext(params.ReadmeFileName)
961
+
ext := strings.ToLower(filepath.Ext(params.ReadmeFileName))
962
962
switch ext {
963
963
case ".md", ".markdown", ".mdown", ".mkdn", ".mkd":
964
964
params.Raw = false
History
1 round
0 comments
tolik518.tngl.sh
submitted
#0
1 commit
expand
collapse
appview/pages: fix README rendering for uppercase extensions
merge conflicts detected
expand
collapse
expand
collapse
- appview/pages/pages.go:864