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
I'm building a Markdown to Delta tool, and for code-blocks, empty lines have to be preserved. I noticed quill.getContents() returns a delta with '' empty insert to preserve empty lines in code-blocks. However, running delta.insert('') doesn't append a new Op to that delta. However, a space character works ok.
example:
constdelta=newDelta()delta.insert('text')delta.insert('')// delta.insert(' ') works thoughdelta.insert('another text')console.log(delta.ops.length)// 2 but expected 3
The text was updated successfully, but these errors were encountered:
I'm building a Markdown to Delta tool, and for code-blocks, empty lines have to be preserved. I noticed
quill.getContents()
returns a delta with''
empty insert to preserve empty lines in code-blocks. However, runningdelta.insert('')
doesn't append a new Op to that delta. However, a space character works ok.example:
The text was updated successfully, but these errors were encountered: