From 918dc7ba095f279dabb56f840f52f9b2f4b6fa65 Mon Sep 17 00:00:00 2001 From: Omaima Ameen Date: Sat, 6 Dec 2025 20:23:46 +0530 Subject: [PATCH] docs: improve installation --- readme.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 949b180..22ada59 100644 --- a/readme.md +++ b/readme.md @@ -89,13 +89,19 @@ manually. If you instead want to use JavaScript and JSX *inside* markdown files, use [MDX][github-mdx]. -## Install +## Installation -This package is [ESM only][esm]. -In Node.js (version 16+), install with [npm][npm-install]: +react-markdown is [ESM only][esm]. +You must use Node.js 16+, modern bundlers (Vite / webpack 5+), or any runtime that supports ECMAScript modules. [npm][npm-install]: + +*Node.js (npm, pnpm, yarn)* ```sh npm install react-markdown +# or +pnpm add react-markdown +# or +yarn add react-markdown ``` In Deno with [`esm.sh`][esmsh]: