Skip to content

Commit

Permalink
Use new syntax for notes
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed May 14, 2024
1 parent a077571 commit 6bfef4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/react-pdf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<details>
Expand Down Expand Up @@ -337,7 +337,7 @@ const options = {
<Document options={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:
Expand Down Expand Up @@ -455,7 +455,7 @@ const options = {
<Document options={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:
Expand Down

0 comments on commit 6bfef4b

Please # to comment.