markdown container like markdown-it-container
::: tip
content
:::
::: tip title
content
muliti line
:::
npm install remark-container
or
yarn remark-container
const remark = require('remark')
const html = require('remark-html')
remark()
.use(plugin, opt)
.use(html).process(`
::: tip title
hello
:::
`)
output
<div class="remark-container tip">
<p class="remark-container-title">TITLE</p>
<p>hello</p>
</div>
- className: class for
div
container, defaultremark-container