mirror of
https://github.com/logseq/logseq.git
synced 2026-04-25 22:54:48 +00:00
Merge pull request #5420 from logseq/enhance/graph-parser-part-four
Enhance: Finish up graph-parser
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
[datascript.core :as d]
|
||||
[frontend.components.lazy-editor :as lazy-editor]
|
||||
[frontend.components.svg :as svg]
|
||||
[frontend.config :as config]
|
||||
[frontend.context.i18n :refer [t]]
|
||||
[frontend.date :as date]
|
||||
[frontend.db :as db]
|
||||
@@ -100,10 +99,10 @@
|
||||
|
||||
(cond
|
||||
;; image type
|
||||
(and format (contains? (config/img-formats) format))
|
||||
(and format (contains? (gp-config/img-formats) format))
|
||||
[:img {:src path}]
|
||||
|
||||
(and format (contains? (config/text-formats) format))
|
||||
(and format (contains? (gp-config/text-formats) format))
|
||||
(when-let [file-content (db/get-file path)]
|
||||
(let [content (string/trim file-content)
|
||||
mode (util/get-file-ext path)]
|
||||
|
||||
Reference in New Issue
Block a user