mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 10:56:32 +00:00
- 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
19 lines
437 B
Clojure
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)))
|