Div (:::div)
The :::div directive wraps content in a <div> element with a specified CSS class name. This is useful for applying custom styling to a block of content in Docusaurus builds. CSS rules targeting the class can be added to src/css/customDiv.css.
In non-Docusaurus builds (MSMD, DBIQ), the directive is transparent: children are rendered as-is without any wrapping element.
Syntax
Markdown
:::div[db-class]
Content goes here. Supports **bold**, _italic_, code blocks, and other Markdown.
:::
The text in square brackets [db-class] becomes the className attribute of the rendered <div>. The label is required — an error will be logged if omitted.