mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-08 23:40:40 +02:00
markup/goldmark/blockquotes: Fix handling of lower/mixed case GitHub alerts
Fixes #12767
This commit is contained in:
@@ -68,6 +68,11 @@ title: "p1"
|
||||
> Note triggering showing the position.
|
||||
{showpos="true"}
|
||||
|
||||
|
||||
> [!nOtE]
|
||||
> Mixed case alert type.
|
||||
|
||||
|
||||
`
|
||||
|
||||
b := hugolib.Test(t, files)
|
||||
@@ -79,6 +84,9 @@ title: "p1"
|
||||
"Blockquote Alert Attributes: |<p>This is a tip with attributes.</p>\n|map[class:foo bar id:baz]|",
|
||||
filepath.FromSlash("/content/p1.md:20:3"),
|
||||
"Blockquote Alert Page: |<p>This is a tip with attributes.</p>\n|p1|p1|",
|
||||
|
||||
// Issue 12767.
|
||||
"Blockquote Alert: |<p>Mixed case alert type.</p>\n|alert",
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user