Files
logseq/src/main/frontend/external.cljs
Gabriel Horner 1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00

19 lines
437 B
Clojure

(ns frontend.external
"Handles importing from external services"
(:require [frontend.external.roam :refer [->Roam]]
[frontend.external.protocol :as protocol]))
(defonce roam-record (->Roam))
(defn get-record
[type]
(case type
:roam
roam-record
nil))
(defn to-markdown-files
[type content config]
(when-let [record (get-record (keyword type))]
(protocol/toMarkdownFiles record content config)))