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
Which are visible, but then normalized back to spaces as soon as you type something and the paragraph is re-parsed.
Ideally, the newlines should be converted to hard breaks when the textblock type is changed, though it's going to be kind of tricky to find a reasonable place for that code (it's very schema-specific).
Please note this problem still exists and is not unique to code blocks:
This also happens when the editor is initialized with a text already containing newlines (e.g. fetched from remote).
@marijnh As a reminder, for prosemirror-markdown there already seems to be a fix available introduced at latest here: ProseMirror/prosemirror-markdown@20905b3 which makes it possible to override the default parser's behaviour when parsing soft breaks. In our use case it seems to work fine.
Which are visible, but then normalized back to spaces as soon as you type something and the paragraph is re-parsed.
Ideally, the newlines should be converted to hard breaks when the textblock type is changed, though it's going to be kind of tricky to find a reasonable place for that code (it's very schema-specific).
Via ProseMirror/prosemirror-markdown#26
The text was updated successfully, but these errors were encountered: