Admonition Demo

Warning

如果在你的 markdown 预览器发现下面有些警示用不了,那就说明那是 Gate 网站独有内容。

尽可能使用 GitHub Flavored Markdown 的语法,因为当前基准是这个而不是网站模块独有的语法(不能确定以后不会换)

Error Test #

Note

Helpful advice for doing things better or more easily.

GitHub Test #

Note

Useful information that users should know, even when skimming content.

Tip

Helpful advice for doing things better or more easily.

Important

Key information users need to know to achieve their goal.

Warning

Urgent info that needs immediate user attention to avoid problems.

Caution

Advises about risks or negative outcomes of certain actions.

Callout Overview #

Abstract

Abstract: This paper discusses the advantages and challenges of microservice architecture.

Caution

Advises about risks or negative outcomes of certain actions.

Code

Code snippet:

function fetchData() {
    return axios.get('/api/data');
}
Conclusion

Conclusion: Based on the analysis above, we’ve decided to implement Docker containerization.

Danger

Danger! Critical security vulnerability detected in the system. Immediate action required.

Error

Error: Unable to connect to database. Please check your connection settings.

Example

Example:

def hello_world():
    print("Hello, World!")
Experiment

Experiment: Testing the impact of new caching strategies on system performance.

Goal

Goal: Reduce service response time by 30% by the end of this quarter.

Idea

Idea: Implement a machine learning-based code quality detection system.

Important

Key information users need to know to achieve their goal.

Info

System status: All services are operating normally. Current uptime: 99.99%.

Memo

Memo: Technical review meeting scheduled for next Tuesday at 2:00 PM.

Note

Useful information that users should know, even when skimming content.

Notification

System notification: Your password will expire in 30 days.

Question

Question: How can we optimize database query performance?

Quote

“Code is like humor. When you have to explain it, it’s bad.” - Cory House

Success

Congratulations! Your code has been successfully deployed to production.

Task

To-do list:

  • Update documentation
  • Deploy new version
Tip

Helpful advice for doing things better or more easily.

Warning

Urgent info that needs immediate user attention to avoid problems.

Customization #

Choose a callout you prefer and add a title

Summary

This is a summary using the TIP callout!

Summary

This is a summary using the IDEA callout!

Header Only Mode #

You can choose to only to show the header!

This paper discusses the advantages of microservice architecture
Ensure all tests pass before merging to main branch
Execute npm install to install all dependencies
We’ve decided to implement Docker containerization
Critical security vulnerability detected in the system
Error: Unable to connect to database. Please check your connection settings
Git commit message format: “feat: add user authentication”
Testing new caching strategy with Redis
Reduce service response time by 30% by the end of this quarter
Implement a machine learning-based code quality detection system
Please review and update your security settings
Current system status: All services are operating normally with 99.9% uptime
Technical review meeting scheduled for next Tuesday at 2:00 PM
Always backup your data before performing system updates
System notification: Your password will expire in 30 days
How can we optimize database query performance?
“Code is like humor. When you have to explain it, it’s bad.” - Cory House
Congratulations! Your code has been successfully deployed to production
Review and update API documentation by Friday
Use Ctrl + C to quickly terminate a running program
Warning: This operation will delete all data

Foldable Admonitions #

Here are the details regarding API usage:
  • Endpoint: /api/v1/users is used to fetch the user list.
  • Authentication: A valid Bearer token must be provided in the request header.
  • Rate Limiting: 100 requests are allowed per minute.
Click here to view the tips

Nested Admonitions #

Can admonitions be nested?
Yes!, they can.
You can even use multiple layers of nesting.