fix(editor): pasting of html list

This commit is contained in:
Andelf
2023-12-11 11:45:27 +08:00
committed by Tienson Qin
parent 49f08d44a1
commit eb22435280

View File

@@ -160,14 +160,14 @@
nil)))]
(if (string/blank? result) nil result))
text-blocks? (if (= format :markdown) markdown-blocks? org-blocks?)
blocks? (text-blocks? text)
text' (or html-text
(when (gp-util/url? text)
(wrap-macro-url text))
text)]
text)
blocks? (text-blocks? text')]
(cond
blocks?
(paste-text-parseable format text)
(paste-text-parseable format text')
(util/safe-re-find #"(?:\r?\n){2,}" text')
(paste-segmented-text format text')