Accepts one of:
- string — A string value. Bare strings default to markdown for backward compatibility.
- object — A structured content object with an explicit format.
The text content.
The content format. 'plain' is unformatted text. 'markdown' is CommonMark (0.27 minimum). 'html' is sanitized HTML. Defaults to 'markdown'.
Default: "markdown"
[
"A plain markdown string. This is the simplest form of richText.",
{
"value": "This is **bold** and _italic_ text using CommonMark.",
"format": "markdown"
},
{
"value": "Unformatted plain text with no markup interpretation.",
"format": "plain"
},
{
"value": "<p>Sanitized HTML content with <strong>bold</strong> and <a href=\"https://example.com\">links</a>.</p>",
"format": "html"
}
]
Design System Documentation Standard (DSDS) 0.1 — Draft Specification
GitHub