fix: dwiw paste in markdown source block

This commit is contained in:
llcc
2022-05-23 11:11:54 +08:00
committed by Tienson Qin
parent 877b55eaf8
commit 2d8047de7f
2 changed files with 3 additions and 2 deletions

View File

@@ -2964,7 +2964,8 @@
(let [text (.getData (gobj/get e "clipboardData") "text")
input (state/get-input)]
(if-not (string/blank? text)
(if (thingatpt/org-admonition&src-at-point input)
(if (or (thingatpt/markdown-src-at-point input)
(thingatpt/org-admonition&src-at-point input))
(when-not (mobile-util/native-ios?)
(util/stop e)
(paste-text-in-one-block-at-point))