# @yuri2/markdown-parser

> 将 markdown 文本转换为带样式的 html

Latest version **1.0.0** (published 2022-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @yuri2/markdown-parser
pnpm add @yuri2/markdown-parser
yarn add @yuri2/markdown-parser
bun add @yuri2/markdown-parser
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-10-19 |
| First published | 2022-10-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 75.1 KB |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | yuri2 |
| Maintainers | yuri2 |
| Keywords | toolkit, rollup, typescript |

## Links

- npm: https://www.npmjs.com/package/@yuri2/markdown-parser
- Repository: https://github.com/yuri2peter/npm-markdown-parser
- Homepage: https://github.com/yuri2peter/npm-markdown-parser#readme
- Issues: https://github.com/yuri2peter/npm-markdown-parser/issues
- npm.io page: https://npm.io/package/@yuri2/markdown-parser

## Dependencies (4)

- [uuid](https://npm.io/package/uuid.md) ^9.0.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^10.1.0
- [css-inliner](https://npm.io/package/css-inliner.md) ^2.0.0
- [markdown-it](https://npm.io/package/markdown-it.md) ^13.0.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-10-19
- 0.10.0 — 2022-10-19
- 0.9.0 — 2022-10-19
- 0.2.0 — 2022-10-19

## README

# @yuri2/markdown-parser

[Github](https://github.com/yuri2peter/npm-markdown-parser)
@yuri2/markdown-parser 是一个将 markdown 文本转换为带样式的 html 的方法库。支持服务端和客户端。

## 安装

`npm i @yuri2/markdown-parser`

## 使用

```ts
import { markdownToHtml } from "../src/index";

const text = `
# Hello World

I am a list:

- Item1
- Item2
- Item3

`;

async function main() {
  const results = await markdownToHtml(text);
  console.log(results);
}

main();
```

---
_Source: https://npm.io/package/@yuri2/markdown-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
