How prosemirror handles '\r\n' and '\n'?

I already know that if I define a node and set the property “code: true”, then the ‘\r\n’ and ‘\n’ will be displayed as newline. But if I remove this setting, the ‘\r\n’ and ‘\n’ will vanish and there is not going to be a newline. So I am curious about the way that prosemirror handles the ‘\r\n’ and ‘\n’ by default?

Check the whitespace documentation.

@andrews I get it, thanks!