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
When providing the string <!DOCTYPE html><!-- <html>\n <head>\n as the source of the Markdown, the @uiw/react-md-editor crashes and throws an error: "Cannot read properties of null (reading 'data')".
Steps to Reproduce
Initialize @uiw/react-md-editor in a React component.
Set the Markdown content to <!DOCTYPE html><!-- <html>\n <head>\n.
Observe the crash and the error message.
Expected Behavior
The editor should handle the input gracefully without crashing.
Actual Behavior
The editor crashes and throws an error: "Cannot read properties of null (reading 'data')".
Description
When providing the string
<!DOCTYPE html><!-- <html>\n <head>\n
as the source of the Markdown, the@uiw/react-md-editor
crashes and throws an error: "Cannot read properties of null (reading 'data')".Steps to Reproduce
@uiw/react-md-editor
in a React component.<!DOCTYPE html><!-- <html>\n <head>\n
.Expected Behavior
The editor should handle the input gracefully without crashing.
Actual Behavior
The editor crashes and throws an error: "Cannot read properties of null (reading 'data')".
Additional Information
Relevant Code
The text was updated successfully, but these errors were encountered: