# Extensions This section describes the different extensions supported: ## Custom Container A custom container is similar to a fenced code block, but it is using the character `:` to declare a block (with at least 3 characters), and instead of generating a `
...
` it will generate a `
...
` block. ```````````````````````````````` example :::spoiler This is a *spoiler* ::: .

This is a spoiler

```````````````````````````````` The text following the opened custom container is optional: ```````````````````````````````` example ::: This is a regular div ::: .

This is a regular div

```````````````````````````````` Like for fenced code block, you can use more than 3 `:` characters as long as the closing has the same number of characters: ```````````````````````````````` example ::::::::::::spoiler This is a spoiler :::::::::::: .

This is a spoiler

```````````````````````````````` Like for fenced code block, a custom container can span over multiple empty lines in a list block: ```````````````````````````````` example - This is a list :::spoiler This is a spoiler - item1 - item2 ::: - A second item in the list . ```````````````````````````````` Attributes extension is also supported for Custom Container, as long as the Attributes extension is activated after the CustomContainer extension (`.UseCustomContainer().UseAttributes()`) ```````````````````````````````` example :::spoiler {#myspoiler myprop=yes} This is a spoiler ::: .

This is a spoiler

```````````````````````````````` The content of a custom container can contain any blocks: ```````````````````````````````` example :::mycontainer

This is a raw spoiler

::: .

This is a raw spoiler

```````````````````````````````` ## Inline Custom Container A custom container can also be used within an inline container (e.g: paragraph, heading...) by enclosing a text by a new emphasis `::` ```````````````````````````````` example This is a text ::with special emphasis:: .

This is a text with special emphasis

```````````````````````````````` Any other emphasis inline can be used within this emphasis inline container: ```````````````````````````````` example This is a text ::with special *emphasis*:: .

This is a text with special emphasis

```````````````````````````````` Attributes can be attached to a inline custom container: ```````````````````````````````` example This is a text ::with special emphasis::{#myId .myemphasis} .

This is a text with special emphasis

````````````````````````````````