Monorepo for Tangled tangled.org
859
fork

Configure Feed

Select the types of activity you want to include in your feed.

appview/pages: fix README rendering for uppercase extensions #323

open opened by tolik518.tngl.sh targeting master from tolik518.tngl.sh/core: master

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.

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:wzoaxleof2leut3d5uk73qry/sh.tangled.repo.pull/3mkzw2joonz22
+2 -2
Diff #0
+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
sign up or login to add to the discussion
tolik518.tngl.sh submitted #0
1 commit
expand
appview/pages: fix README rendering for uppercase extensions
merge conflicts detected
expand
  • appview/pages/pages.go:864
expand 0 comments