remark-container

0.1.2 • Public • Published

Remark Container

markdown container like markdown-it-container

CircleCI codecov

Example

::: tip
content
:::
::: tip title
content
 
muliti line
:::

Usage

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>

Options

  • className: class for div container, default remark-container

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    113
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    113
  • 0.1.1
    2
  • 0.1.0
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i remark-container

Weekly Downloads

117

Version

0.1.2

License

MIT

Unpacked Size

8.71 kB

Total Files

8

Last publish

Collaborators

  • zzwing