https://github.com/lexmin0412/markdown-it-echarts
markdown-it 的 echarts 插件
https://github.com/lexmin0412/markdown-it-echarts
echarts markdown markdown-it markdown-it-echarts markdown-it-plugin
Last synced: 19 days ago
JSON representation
markdown-it 的 echarts 插件
- Host: GitHub
- URL: https://github.com/lexmin0412/markdown-it-echarts
- Owner: lexmin0412
- Created: 2025-03-14T08:59:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-11-04T14:40:56.000Z (6 months ago)
- Last Synced: 2025-11-04T16:16:12.727Z (6 months ago)
- Topics: echarts, markdown, markdown-it, markdown-it-echarts, markdown-it-plugin
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@lexmin0412/markdown-it-echarts
- Size: 230 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# markdown-it-echarts





`markdown-it` 的 `echarts` 插件。
## 安装
```bash
pnpm add @lexmin0412/markdown-it-echarts
```
## 使用
```js
import MarkdownIt from 'markdown-it'
import MarkdownItPluginEcharts from '@lexmin0412/markdown-it-echarts'
const md = MarkdownIt({ html: true, breaks: true }).use(MarkdownItPluginEcharts)
const result = md.render(markdownText)
// 渲染的 HTML 结果
console.log(result)
```