mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 17:06:23 +00:00
fix(editor): pasting of html list
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user