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
@@ -277,20 +277,18 @@ function markdownToDraft(string, options = {}) {
277
277
if(block&&options.preserveNewlines){
278
278
// Re: previousBlockEndingLine.... omg.
279
279
// So remarkable strips out empty newlines and doesn't make any entities to parse to restore them
280
-
// the only solution I could find is that there's a 2-value array on each block item called "lines" which is the start end line of the block element.
280
+
// the only solution I could find is that there's a 2-value array on each block item called "lines" which is the start and end line of the block element.
281
281
// by keeping track of the PREVIOUS block element ending line and the NEXT block element starting line, we can find the difference between the new lines and insert
282
282
// an appropriate number of extra paragraphs to re-create those newlines in draftjs.
283
283
// This is probably my least favourite thing in this file, but not sure what could be better.
0 commit comments