Files
StudyDiary-20261009/08-Inbox/marp/docs/32.Markdown-it-Conteiners.md

59 lines
884 B
Markdown
Raw Normal View History

2026-10-09 22:06:40 +08:00
---
title: Markdown-It Conteiners
parent: Markdown-It Plugins
created: 2025-09-09T19:23
updated: 2025-09-22T13:27
---
# Markdown-It Container
With this plugin you can create block containers like:
```markdown
::: container
*here be dragons*
:::
```
.... and specify how they should be rendered. If no renderer defined, `<div>` with
container name class will be created:
```html
<div class="container">
<em>here be dragons</em>
</div>
```
## Sample
```markdown
---
<!-- _class: box-flex -->
# Columns Containers
**[markdown-it-container](https://github.com/markdown-it/markdown-it-container)**
::: container
## Colum 1
text dadadas text text text text text text text text text text
:::
::: container
## Colum 2
text
:::
---
```
![alt text](pictures/plugin-container.png)
## References
- [markdown-it-container](https://github.com/markdown-it/markdown-it-container)