Containers are a great way to mark important information and provide hints to users.
Rspress provides two styles of syntax, ::: syntax and GitHub Markdown Alerts syntax.
::: SyntaxYou can use the ::: syntax to create custom containers and support custom titles. For example:
This is a block of type note
This is a block of type tip
This is a block of type info
This is a block of type warning
This is a block of type danger
This is a block of type details
This is a block of Custom Title
This is a block of Custom Title
We recommend using the syntax :::tip Custom Title directly.
When using the ::: syntax in .mdx files and customizing headings with curly braces syntax, be aware of escaping.
:::tip\{title="Custom Title"}
This is a `block` of `Custom Title`
:::You can use GitHub Markdown Alerts Syntax to create custom containers.
This is a block of type note
This is a block of type tip
This is a block of type info
This is a block of type warning
This is a block of type danger
This is a block of type details