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
// @ts-expect-error: check how the runtime handles untyped `source`.
36
-
assert.equal(asHtml(<Markdownsource="a"/>),'')
37
-
assert.equal(
38
-
message,
39
-
'[react-markdown] Warning: please use `children` instead of `source` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#change-source-to-children> for more info)'
'[react-markdown] Warning: please remove `allowDangerousHtml` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#remove-buggy-html-in-markdown-parser> for more info)'
126
-
)
127
-
128
-
console.warn=warn
129
-
130
-
/**
131
-
* @param {unknown} d
132
-
* @returns {undefined}
133
-
*/
134
-
functioncapture(d){
135
-
message=d
136
-
}
60
+
asHtml(<MarkdownallowDangerousHtml/>)
61
+
},/Unexpected`allowDangerousHtml`prop,removeit/)
137
62
})
138
63
139
64
awaitt.test('should support `className`',function(){
0 commit comments