# @lhjeong60/react-markdown-preview

> modified version of @uiw/react-markdown-preview to use in server side.

Latest version **4.1.91** (published 2023-03-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lhjeong60/react-markdown-preview
pnpm add @lhjeong60/react-markdown-preview
yarn add @lhjeong60/react-markdown-preview
bun add @lhjeong60/react-markdown-preview
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.1.91 |
| Published | 2023-03-08 |
| First published | 2023-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 12 |
| Unpacked size | 3.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | HoJeong Lee |
| Maintainers | lhjeong60 |
| Keywords | react, markdown, prismjs, react-markdown |

## Links

- npm: https://www.npmjs.com/package/@lhjeong60/react-markdown-preview
- Repository: https://github.com/lhjeong60/react-markdown-preview
- Homepage: https://github.com/lhjeong60/react-markdown-preview.git
- Issues: https://github.com/lhjeong60/react-markdown-preview/issues
- npm.io page: https://npm.io/package/@lhjeong60/react-markdown-preview

## Dependencies (12)

- [rehype-raw](https://npm.io/package/rehype-raw.md) ^6.1.1
- [remark-gfm](https://npm.io/package/remark-gfm.md) ~3.0.1
- [rehype-attr](https://npm.io/package/rehype-attr.md) ~2.1.0
- [rehype-slug](https://npm.io/package/rehype-slug.md) ~5.1.0
- [rehype-ignore](https://npm.io/package/rehype-ignore.md) ^1.0.1
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.17.2
- [react-markdown](https://npm.io/package/react-markdown.md) ~8.0.0
- [rehype-rewrite](https://npm.io/package/rehype-rewrite.md) ~3.0.6
- [unist-util-visit](https://npm.io/package/unist-util-visit.md) ^4.1.0
- [rehype-prism-plus](https://npm.io/package/rehype-prism-plus.md) ~1.5.0
- [@uiw/copy-to-clipboard](https://npm.io/package/@uiw/copy-to-clipboard.md) ~1.0.12
- [rehype-autolink-headings](https://npm.io/package/rehype-autolink-headings.md) ~6.1.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 4.1.91 (latest) — 2023-03-08
- 4.1.9 — 2023-03-08

## README

This package is a modified version of a `@uiw/react-markdown-preview`.

To use a `@uiw/react-markdown-preview` on the server side, I have modified `require()` to `(async () => await import())()` in some files.

``` js
// lib/index.js
// old
var _reactMarkdown = _interopRequireDefault(require("react-markdown"));

// new
var _reactMarkdown = _interopRequireDefault(( async () => await import("react-markdown"))());
```

I know this is a bad way, but I will use it until I find the right way.

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