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
This [`ReactMarkdownProps`](https://github.com/rexxars/react-markdown/blob/2d991aa1097e95064f0209fc6d3a15b6300c07c7/index.d.ts#L76-L95) details.
52
-
53
-
-`source` or `children` - _string_ The Markdown source to parse (**required**)
54
-
-`className` - _string_ Class name of the container element. If none is passed, a container will not be rendered.
55
-
-`escapeHtml` - _boolean_ Setting to `false` will cause HTML to be rendered (see notes below about proper HTML support). Be aware that setting this to `false` might cause security issues if the
56
-
input is user-generated. Use at your own risk. (default: `true`).
57
-
-`skipHtml` - _boolean_ Setting to `true` will skip inlined and blocks of HTML (default: `false`).
58
-
-`sourcePos` - _boolean_ Setting to `true` will add `data-sourcepos` attributes to all elements,
59
-
indicating where in the markdown source they were rendered from (default: `false`).
60
-
-`rawSourcePos` - _boolean_ Setting to `true` will pass a `sourcePosition` property to all renderers with structured source position information (default: `false`).
61
-
-`includeNodeIndex` - _boolean_ Setting to `true` will pass `index` and `parentChildCount` props to all renderers (default: `false`).
62
-
-`allowedTypes` - _array_ Defines which types of nodes should be allowed (rendered). (default: all
63
-
types).
64
-
-`disallowedTypes` - _array_ Defines which types of nodes should be disallowed (not rendered).
65
-
(default: none).
66
-
-`unwrapDisallowed` - _boolean_ Setting to `true` will try to extract/unwrap the children of
67
-
disallowed nodes. For instance, if disallowing `Strong`, the default behaviour is to simply skip
68
-
the text within the strong altogether, while the behaviour some might want is to simply have the
69
-
text returned without the strong wrapping it. (default: `false`)
70
-
-`allowNode` - _function_ Function execute if in order to determine if the node should be allowed.
71
-
Ran prior to checking `allowedTypes`/`disallowedTypes`. Returning a truthy value will allow the
72
-
node to be included. Note that if this function returns `true` and the type is not in
73
-
`allowedTypes` (or specified as a `disallowedType`), it won't be included. The function will
74
-
receive three arguments argument (`node`, `index`, `parent`), where `node` contains different
75
-
properties depending on the node type.
76
-
-`linkTarget` - _function|string_ Sets the default target attribute for links. If a function is
77
-
provided, it will be called with `url`, `text`, and `title` and should return a string
78
-
(e.g. `_blank` for a new tab). Default is `undefined` (no target attribute).
79
-
-`transformLinkUri` - _function|null_ Function that gets called for each encountered link with a
80
-
single argument - `uri`. The returned value is used in place of the original. The default link URI
81
-
transformer acts as an XSS-filter, neutralizing things like `javascript:`, `vbscript:` and `file:`
82
-
protocols. If you specify a custom function, this default filter won't be called, but you can
83
-
access it as `require('react-markdown').uriTransformer`. If you want to disable the default
84
-
transformer, pass `null` to this option.
85
-
-`transformImageUri` - _function|null_ Function that gets called for each encountered image with a
86
-
single argument - `uri`. The returned value is used in place of the original.
87
-
-`renderers` - _object_ An object where the keys represent the node type and the value is a React
88
-
component. The object is merged with the default renderers. The props passed to the component
89
-
varies based on the type of node.
90
-
91
-
See [Options Props](https://github.com/rexxars/react-markdown/tree/2d991aa1097e95064f0209fc6d3a15b6300c07c7#options) for more details.
51
+
This [`ReactMarkdownProps`](https://github.com/remarkjs/react-markdown/blob/22bb78747d768181cb9ea8711b5e13c3768921d8/index.d.ts#L32-L84) details.
0 commit comments