File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes will be documented in this file.
4
4
5
+ ## 8.0.0 - 2022-01-17
6
+
7
+ ### Change ` plugins ` to ` remarkPlugins `
8
+
9
+ This removes the already deprecated option ` plugins ` .
10
+ It’s renamed to ` remarkPlugins ` .
11
+
5
12
## 7.0.1 - 2021-08-26
6
13
7
14
* [ ` ec387c2 ` ] ( https://github.com/remarkjs/react-markdown/commit/ec387c2 )
Original file line number Diff line number Diff line change 10
10
* @property {string } children
11
11
*
12
12
* @typedef PluginOptions
13
- * @property {PluggableList } [plugins=[]] **deprecated**: use `remarkPlugins` instead
14
13
* @property {PluggableList } [remarkPlugins=[]]
15
14
* @property {PluggableList } [rehypePlugins=[]]
16
15
* @property {import('remark-rehype').Options } [remarkRehypeOptions={}]
@@ -42,6 +41,7 @@ const changelog =
42
41
43
42
/** @type {Record<string, Deprecation> } */
44
43
const deprecated = {
44
+ plugins : { to : 'plugins' , id : 'change-plugins-to-remarkplugins' } ,
45
45
renderers : { to : 'components' , id : 'change-renderers-to-components' } ,
46
46
astPlugins : { id : 'remove-buggy-html-in-markdown-parser' } ,
47
47
allowDangerousHtml : { id : 'remove-buggy-html-in-markdown-parser' } ,
@@ -86,8 +86,7 @@ export function ReactMarkdown(options) {
86
86
87
87
const processor = unified ( )
88
88
. use ( remarkParse )
89
- // TODO: deprecate `plugins` in v8.0.0.
90
- . use ( options . remarkPlugins || options . plugins || [ ] )
89
+ . use ( options . remarkPlugins || [ ] )
91
90
. use ( remarkRehype , {
92
91
...options . remarkRehypeOptions ,
93
92
allowDangerousHtml : true
You can’t perform that action at this time.
0 commit comments