Skip to content

Commit bf8c798

Browse files
2hu12haydenbleasel
andauthored
docs: add defaultOrigin prop to README (#57)
* docs: add defaultOrigin prop to README * Update README.md * Create strong-apes-stop.md --------- Co-authored-by: Hayden Bleasel <[email protected]>
1 parent 593e49e commit bf8c798

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.changeset/strong-apes-stop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"streamdown": patch
3+
---
4+
5+
update props in readme

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ Streamdown accepts all the same props as react-markdown, plus additional streami
111111
| `rehypePlugins` | `array` | `[rehypeKatex]` | Rehype plugins to use |
112112
| `allowedImagePrefixes` | `array` | `['*']` | Allowed image URL prefixes |
113113
| `allowedLinkPrefixes` | `array` | `['*']` | Allowed link URL prefixes |
114+
| `defaultOrigin` | `string` | - | Default origin to use for relative URLs in links and images |
114115
| `shikiTheme` | `BundledTheme` (from Shiki) | `github-light` | The theme to use for code blocks |
115116

116117
## Architecture

packages/streamdown/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ Streamdown accepts all the same props as react-markdown, plus additional streami
149149
| `rehypePlugins` | `array` | `[rehypeKatex]` | Rehype plugins to use |
150150
| `allowedImagePrefixes` | `array` | `['*']` | Allowed image URL prefixes |
151151
| `allowedLinkPrefixes` | `array` | `['*']` | Allowed link URL prefixes |
152+
| `defaultOrigin` | `string` | - | Default origin to use for relative URLs in links and images |
153+
| `shikiTheme` | `BundledTheme` (from Shiki) | `github-light` | The theme to use for code blocks |
152154

153155
## Architecture
154156

0 commit comments

Comments
 (0)