Skip to content

jhull/remark-container

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

remark plugin for custom container

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%