diff --git a/packages/react-pdf/README.md b/packages/react-pdf/README.md index b1cd5b7c5..4d63709d4 100644 --- a/packages/react-pdf/README.md +++ b/packages/react-pdf/README.md @@ -123,13 +123,13 @@ pdfjs.GlobalWorkerOptions.workerSrc = new URL( ).toString(); ``` -> **Note** +> [!NOTE] > In Next.js: > > - Using App Router, make sure to add `'use client';` to the top of the file. > - Using Pages Router, make sure to [disable SSR](https://nextjs.org/docs/pages/building-your-application/optimizing/lazy-loading#with-no-ssr) when importing the component you're using this code in. -> **Note** +> [!NOTE] > pnpm requires an `.npmrc` file with `public-hoist-pattern[]=pdfjs-dist` for this to work.
@@ -337,7 +337,7 @@ const options = { ; ``` -> **Note** +> [!NOTE] > Make sure to define `options` object outside of your React component, and use `useMemo` if you can't. Alternatively, you could use cMaps from external CDN: @@ -455,7 +455,7 @@ const options = { ; ``` -> **Note** +> [!NOTE] > Make sure to define `options` object outside of your React component, and use `useMemo` if you can't. Alternatively, you could use standard fonts from external CDN: