GitHub Style Alert Testing
This article is used to test the new GitHub-style Alert feature and folding functionality.
Alert Syntax
Note Alert
Note
This is a note alert box. Used to display useful information that users should be aware of, even when quickly browsing the content.
Tip Alert
Tip
This is a tip alert box. Provides suggestions that help complete tasks better or more easily.
Important Alert
Important
This is an important alert box. Displays critical information users need to know to achieve their goals.
Warning Alert
Warning
This is a warning box. Urgent information that requires immediate user attention to avoid problems.
Caution Alert
Caution
This is a caution alert box. Advises users to be aware of the risks or negative consequences of certain behaviors.
Extended Syntax - Custom Titles
Note with Custom Title
Custom Title
This is a note alert box with a custom title.
Warning with Custom Title
Radiation Hazard
Do not approach or handle without protective equipment.
Folding Feature
Expanded Foldable Alert by Default
Click to Collapse
This is an expanded foldable alert box by default. Click the title to collapse the content.
Supports multi-line content:
- List item 1
- List item 2
- List item 3
Collapsed Alert by Default
Important Information (Collapsed by Default)
This is an important information box collapsed by default. Click the title to expand and view the content.
Can include:
- Ordered list
- Bold text
- Italic text
Code snippet
Foldable Alert with Complex Content
Complex Content Example
This foldable box contains complex Markdown content:
Subheading
This is a paragraph containing a link and other formatting.
// Code block example
function hello() {
console.log("Hello, World!");
}
Table | Example |
---|---|
Row1 | Data1 |
Row2 | Data2 |
Regular Blockquote
This is a regular blockquote, not an Alert:
This is a standard blockquote. It won’t be rendered as an Alert but will use the standard blockquote styling.
Supports multi-line content and formatted text.
Multilingual Support
Alerts support multiple languages, and titles will automatically display in the current language:
Note
In a Chinese environment, this title will display as “注意” (Note).
Tip
In a Chinese environment, this title will display as “提示” (Tip).
Nested Content Test
Nested Content Test
This Alert contains nested content:
This is a nested blockquote
- List item
- Nested list item
- Another nested item
- Ordered list
- Nested ordered list
- Another nested item
Comments