#
Markdown
On Risuai, you can use Markdown to format your text. Markdown is a easy-to-read and easy-to-write syntax for styling text. We follow the CommonMark specification for Markdown.
#
Supported
#
Advanced Tips
- You can use HTML in Markdown. However, some tags and attributes are treated specially:
<style>
: The css inside this tag would be trimmed down to a safe subset of css properties and values. and class names would be renamed to prevent conflicts.<iframe>
: If is a youtube video, it would be embedded in the chat. Otherwise, it would be removed.class
attribute: The class names would be renamed to prevent conflicts. since the css's class names are renamed, the class names in the HTML tags would still work.href
attribute: The attribute would be removed if it is not a valid URL.translate
attribute: If the attribute is set tono
, the element won't be translated.risu-trigger
attribute: If the attribute is set, if the user clicks on the element, the trigger named in the attribute would be triggered.
- Formatting is disabled right after HTML tags. You need to add a new line after the tag to enable formatting.
- Backslashes are used to escape Markdown syntax. for example,
\~\~hello\~\~
will be displayed as~~hello~~
, instead of strikethrough texthello _
can be used instead of*
for italic text, and__
can be used instead of**
for bold text.- Bold and Italic text can be combined. For example,
***bold and italic text***
will be displayed as bold and italic text. 
can be used to add images. however, We recommend using the{{image::assetId}}
syntax to add images instead.- URLs linking isn't supported due to security reasons.