first commit
This commit is contained in:
+59
@@ -0,0 +1,59 @@
|
||||
---
|
||||
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
|
||||
|
||||
:::
|
||||
|
||||
---
|
||||
```
|
||||
|
||||

|
||||
|
||||
|
||||
## References
|
||||
|
||||
- [markdown-it-container](https://github.com/markdown-it/markdown-it-container)
|
||||
Reference in New Issue
Block a user