File tree Expand file tree Collapse file tree 2 files changed +0
-61
lines changed Expand file tree Collapse file tree 2 files changed +0
-61
lines changed Original file line number Diff line number Diff line change 9494 */
9595
9696import { toJsxRuntime } from 'hast-util-to-jsx-runtime'
97- import PropTypes from 'prop-types'
9897// @ts -expect-error: untyped.
9998import { Fragment , jsx , jsxs } from 'react/jsx-runtime'
10099import remarkParse from 'remark-parse'
@@ -299,62 +298,6 @@ export function Markdown(options) {
299298 }
300299}
301300
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-
358301/**
359302 * Make a URL safe.
360303 *
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ test('react-markdown', async function (t) {
5555 /** @type {unknown } */
5656 let message
5757
58- console . error = function ( ) { }
5958 console . warn = capture
6059
6160 // @ts -expect-error: check how the runtime handles invalid `children`.
@@ -65,7 +64,6 @@ test('react-markdown', async function (t) {
6564 '[react-markdown] Warning: please pass a string as `children` (not: `1`)'
6665 )
6766
68- console . error = error
6967 console . warn = warn
7068
7169 /**
@@ -82,7 +80,6 @@ test('react-markdown', async function (t) {
8280 /** @type {unknown } */
8381 let message
8482
85- console . error = function ( ) { }
8683 console . warn = capture
8784
8885 // @ts -expect-error: check how the runtime handles invalid `children`.
@@ -92,7 +89,6 @@ test('react-markdown', async function (t) {
9289 '[react-markdown] Warning: please pass a string as `children` (not: `true`)'
9390 )
9491
95- console . error = error
9692 console . warn = warn
9793
9894 /**
You can’t perform that action at this time.
0 commit comments