You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -445,58 +445,131 @@ type MarkdownPreviewProps = {
445
445
-`className` (`string?`)\
446
446
Wrap the markdown in a `div` with this class name
447
447
448
-
This [`ReactMarkdownProps`](https://github.com/remarkjs/react-markdown/tree/02bac837bf141cdb8face360fb88be6fa33ab194#props) details. [Upgrade `react-markdown`v6](https://github.com/remarkjs/react-markdown/blob/15b4757082cf3f32a25eba0b8ea30baf751a8b40/changelog.md#600---2021-04-15)
448
+
This [`ReactMarkdownProps`](https://github.com/remarkjs/react-markdown/tree/02bac837bf141cdb8face360fb88be6fa33ab194#props) details. [Upgrade `react-markdown`v9](https://github.com/remarkjs/react-markdown/tree/a27d335fc5419db4a2811e7f589d6467218346de?tab=readme-ov-file#options)
List of [rehype plugins](https://github.com/rehypejs/rehype/blob/main/doc/plugins.md#list-of-plugins) to use.
498
464
See the next section for examples on how to pass options
499
465
466
+
> [!NOTE]
467
+
>
468
+
> [Upgrade `react-markdown`~~v8~~ to v9](https://github.com/remarkjs/react-markdown/blob/a27d335fc5419db4a2811e7f589d6467218346de/changelog.md?plain=1#L5-L144)
469
+
470
+
### Add `urlTransform`
471
+
472
+
The `transformImageUri` and `transformLinkUri` were removed.
473
+
Having two functions is a bit much, particularly because there are more URLs
474
+
you might want to change (or which might be unsafe so *we* make them safe).
475
+
And their name and APIs were a bit weird.
476
+
You can use the new `urlTransform` prop instead to change all your URLs.
477
+
478
+
### Remove `linkTarget`
479
+
480
+
The `linkTarget` option was removed; you should likely not set targets.
0 commit comments