diff options
author | Unknwon <u@gogs.io> | 2017-04-07 22:33:19 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-04-07 22:33:19 -0400 |
commit | 6ebdf91b327313a0d258ee473b5da5314377e348 (patch) | |
tree | 7fcca8f9db8fed71f4f6b2115e7d69d48453e29a /pkg/markup | |
parent | 91cd350b631f721d1d6dd38bbafd3cac612e53c6 (diff) |
templates/repo: fix README.ipynb not rendered (#4367)
Diffstat (limited to 'pkg/markup')
-rw-r--r-- | pkg/markup/markup.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/markup/markup.go b/pkg/markup/markup.go index 2484a7f9..6173be39 100644 --- a/pkg/markup/markup.go +++ b/pkg/markup/markup.go @@ -23,6 +23,11 @@ func IsReadmeFile(name string) bool { return strings.HasPrefix(strings.ToLower(name), "readme") } +// IsIPythonNotebook reports whether name looks like a IPython notebook based on its extension. +func IsIPythonNotebook(name string) bool { + return strings.HasSuffix(name, ".ipynb") +} + const ( ISSUE_NAME_STYLE_NUMERIC = "numeric" ISSUE_NAME_STYLE_ALPHANUMERIC = "alphanumeric" |