Skip to content

Commit 5cdde41

Browse files
authored
docs: Update rehypePlugins default value in README (#163)
* docs: Update rehypePlugins default value in README The default value for `rehypePlugins` in the README was updated to include `rehypeRaw`. * docs: Update rehypePlugins default value in website
1 parent 38ad1ed commit 5cdde41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/website/app/components/props.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const props = [
4545
{
4646
name: "rehypePlugins",
4747
type: "array",
48-
default: "[rehypeKatex]",
48+
default: "[rehypeRaw, rehypeKatex]",
4949
description:
5050
"Array of rehype plugins to use for processing HTML. Includes KaTeX for math rendering by default.",
5151
},

packages/streamdown/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Streamdown accepts all the same props as react-markdown, plus additional streami
160160
| `className` | `string` | - | CSS class for the container |
161161
| `components` | `object` | - | Custom component overrides |
162162
| `remarkPlugins` | `array` | `[remarkGfm, remarkMath]` | Remark plugins to use |
163-
| `rehypePlugins` | `array` | `[rehypeKatex]` | Rehype plugins to use |
163+
| `rehypePlugins` | `array` | `[rehypeRaw, rehypeKatex]` | Rehype plugins to use |
164164
| `allowedImagePrefixes` | `array` | `['*']` | Allowed image URL prefixes |
165165
| `allowedLinkPrefixes` | `array` | `['*']` | Allowed link URL prefixes |
166166
| `defaultOrigin` | `string` | - | Default origin to use for relative URLs in links and images |

0 commit comments

Comments
 (0)