hunghg255 / markdown-it-code-group

markdown-it-code-group
https://hunghg255.github.io/markdown-it-code-group/
MIT License
6 stars 0 forks source link
code-group markdown markdown-it markdown-parser markdown-to-html

logo

A markdown-it plugin to support convert markdown to html with code group style.

NPM Version NPM Downloads Minizip Contributors License

Usage

npm i markdown-it-code-group
import MarkdownIt from 'markdown-it'
import MarkdownItCodeGroup from 'markdown-it-code-group'

const md = MarkdownIt()

md.use(MarkdownItCodeGroup, /* Options */)

const html = md.render(/* ... */)

DOM Actions

import { markdownItCodeGroupDom } from 'markdown-it-code-group/dom'

markdownItCodeGroupDom()

Example

Example

License

MIT License © 2024-PRESENT Hung