support all item types and refactoring

This commit is contained in:
Weihua Lu
2021-07-23 01:45:38 +08:00
parent aff2895b6d
commit 374f16e6c2
6 changed files with 99 additions and 144 deletions

View File

@@ -1760,11 +1760,6 @@
:org (util/format "[[%s][%s]]" link label)
nil)))
(defn handle-command-zotero
[id page-name format]
(state/set-editor-show-zotero! false)
(insert-command! id (str "[[" page-name "]]") format {}))
(defn handle-command-input
[command id format m pos]
(case command