diff --git a/.air.toml b/.air.toml
index 3740c4d4aa391..8854041a25b92 100644
--- a/.air.toml
+++ b/.air.toml
@@ -21,3 +21,6 @@ exclude_dir = [
]
exclude_regex = ["_test.go$", "_gen.go$"]
stop_on_error = true
+
+[log]
+main_only = true
diff --git a/modules/markup/markdown/markdown_test.go b/modules/markup/markdown/markdown_test.go
index 9a8c39df0a2dc..1a88d5d44a940 100644
--- a/modules/markup/markdown/markdown_test.go
+++ b/modules/markup/markdown/markdown_test.go
@@ -551,6 +551,10 @@ func TestMathBlock(t *testing.T) {
"$$a$$",
`
a
` + nl,
},
+ {
+ "$a$ ($b$) [$c$] {$d$}",
+ `a
(b
) [$c$] {$d$}
` + nl,
+ },
}
for _, test := range testcases {
diff --git a/modules/markup/markdown/math/inline_parser.go b/modules/markup/markdown/math/inline_parser.go
index 862234e69bb74..614cf329af86e 100644
--- a/modules/markup/markdown/math/inline_parser.go
+++ b/modules/markup/markdown/math/inline_parser.go
@@ -45,6 +45,10 @@ func isPunctuation(b byte) bool {
return b == '.' || b == '!' || b == '?' || b == ',' || b == ';' || b == ':'
}
+func isBracket(b byte) bool {
+ return b == ')'
+}
+
func isAlphanumeric(b byte) bool {
return (b >= 'a' && b <= 'z') || (b >= 'A' && b <= 'Z') || (b >= '0' && b <= '9')
}
@@ -84,7 +88,7 @@ func (parser *inlineParser) Parse(parent ast.Node, block text.Reader, pc parser.
break
}
suceedingCharacter := line[pos]
- if !isPunctuation(suceedingCharacter) && !(suceedingCharacter == ' ') {
+ if !isPunctuation(suceedingCharacter) && !(suceedingCharacter == ' ') && !isBracket(suceedingCharacter) {
return nil
}
if line[ender-1] != '\\' {
diff --git a/modules/structs/org_team.go b/modules/structs/org_team.go
index 78dc4abaefd32..f8899b236bf4f 100644
--- a/modules/structs/org_team.go
+++ b/modules/structs/org_team.go
@@ -24,7 +24,7 @@ type Team struct {
// CreateTeamOption options for creating a team
type CreateTeamOption struct {
// required: true
- Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(30)"`
+ Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(255)"`
Description string `json:"description" binding:"MaxSize(255)"`
IncludesAllRepositories bool `json:"includes_all_repositories"`
// enum: read,write,admin
@@ -40,7 +40,7 @@ type CreateTeamOption struct {
// EditTeamOption options for editing a team
type EditTeamOption struct {
// required: true
- Name string `json:"name" binding:"AlphaDashDot;MaxSize(30)"`
+ Name string `json:"name" binding:"AlphaDashDot;MaxSize(255)"`
Description *string `json:"description" binding:"MaxSize(255)"`
IncludesAllRepositories *bool `json:"includes_all_repositories"`
// enum: read,write,admin
diff --git a/web_src/css/repo.css b/web_src/css/repo.css
index 357a4ee1950cc..571c60700ee34 100644
--- a/web_src/css/repo.css
+++ b/web_src/css/repo.css
@@ -530,14 +530,10 @@ td .commit-summary {
min-width: 100px;
}
-.repository.new.issue .comment.form .comment .avatar {
+#new-issue .avatar {
width: 3em;
}
-.repository.new.issue .comment.form .content {
- margin-left: 4em;
-}
-
.repository.new.issue .comment.form .content::before,
.repository.new.issue .comment.form .content::after {
right: 100%;