File tree 2 files changed +0
-61
lines changed
2 files changed +0
-61
lines changed Original file line number Diff line number Diff line change 94
94
*/
95
95
96
96
import { toJsxRuntime } from 'hast-util-to-jsx-runtime'
97
- import PropTypes from 'prop-types'
98
97
// @ts -expect-error: untyped.
99
98
import { Fragment , jsx , jsxs } from 'react/jsx-runtime'
100
99
import remarkParse from 'remark-parse'
@@ -299,62 +298,6 @@ export function Markdown(options) {
299
298
}
300
299
}
301
300
302
- Markdown . propTypes = {
303
- // Core options:
304
- children : PropTypes . string ,
305
- // Layout options:
306
- className : PropTypes . string ,
307
- // Filter options:
308
- allowElement : PropTypes . func ,
309
- allowedElements : PropTypes . arrayOf ( PropTypes . string ) ,
310
- disallowedElements : PropTypes . arrayOf ( PropTypes . string ) ,
311
- unwrapDisallowed : PropTypes . bool ,
312
- // Plugin options:
313
- remarkPlugins : PropTypes . arrayOf (
314
- PropTypes . oneOfType ( [
315
- PropTypes . object ,
316
- PropTypes . func ,
317
- PropTypes . arrayOf (
318
- PropTypes . oneOfType ( [
319
- PropTypes . bool ,
320
- PropTypes . string ,
321
- PropTypes . object ,
322
- PropTypes . func ,
323
- PropTypes . arrayOf (
324
- // prettier-ignore
325
- // type-coverage:ignore-next-line
326
- PropTypes . any
327
- )
328
- ] )
329
- )
330
- ] )
331
- ) ,
332
- rehypePlugins : PropTypes . arrayOf (
333
- PropTypes . oneOfType ( [
334
- PropTypes . object ,
335
- PropTypes . func ,
336
- PropTypes . arrayOf (
337
- PropTypes . oneOfType ( [
338
- PropTypes . bool ,
339
- PropTypes . string ,
340
- PropTypes . object ,
341
- PropTypes . func ,
342
- PropTypes . arrayOf (
343
- // prettier-ignore
344
- // type-coverage:ignore-next-line
345
- PropTypes . any
346
- )
347
- ] )
348
- )
349
- ] )
350
- ) ,
351
- // Transform options:
352
- skipHtml : PropTypes . bool ,
353
- transformLinkUri : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . bool ] ) ,
354
- transformImageUri : PropTypes . func ,
355
- components : PropTypes . object
356
- }
357
-
358
301
/**
359
302
* Make a URL safe.
360
303
*
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ test('react-markdown', async function (t) {
55
55
/** @type {unknown } */
56
56
let message
57
57
58
- console . error = function ( ) { }
59
58
console . warn = capture
60
59
61
60
// @ts -expect-error: check how the runtime handles invalid `children`.
@@ -65,7 +64,6 @@ test('react-markdown', async function (t) {
65
64
'[react-markdown] Warning: please pass a string as `children` (not: `1`)'
66
65
)
67
66
68
- console . error = error
69
67
console . warn = warn
70
68
71
69
/**
@@ -82,7 +80,6 @@ test('react-markdown', async function (t) {
82
80
/** @type {unknown } */
83
81
let message
84
82
85
- console . error = function ( ) { }
86
83
console . warn = capture
87
84
88
85
// @ts -expect-error: check how the runtime handles invalid `children`.
@@ -92,7 +89,6 @@ test('react-markdown', async function (t) {
92
89
'[react-markdown] Warning: please pass a string as `children` (not: `true`)'
93
90
)
94
91
95
- console . error = error
96
92
console . warn = warn
97
93
98
94
/**
You can’t perform that action at this time.
0 commit comments