An open API service indexing awesome lists of open source software.

https://github.com/hunghg255/markdown-it-code-group

markdown-it-code-group
https://github.com/hunghg255/markdown-it-code-group

code-group markdown markdown-it markdown-parser markdown-to-html

Last synced: 7 months ago
JSON representation

markdown-it-code-group

Awesome Lists containing this project

README

        



logo


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


NPM Version
NPM Downloads
Minizip
Contributors
License

## Usage

```bash
npm i markdown-it-code-group
```

```js
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

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

markdownItCodeGroupDom()
```

### Example

[Example](./test/input/1.basic.md)

## License

[MIT](https://github.com/hunghg255/markdown-it-code-group/blob/main/LICENSE) License © 2024-PRESENT [Hung](https://github.com/hunghg255)