mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 09:26:28 +00:00
enhance(editor): allow edit markup files
This commit is contained in:
@@ -105,14 +105,6 @@
|
||||
(and format (contains? (config/img-formats) format))
|
||||
[:img {:src path}]
|
||||
|
||||
(and format (contains? config/markup-formats format))
|
||||
(when-let [file-content (db/get-file path)]
|
||||
(let [content (string/trim file-content)]
|
||||
(content/content path {:config {:file? true
|
||||
:file-path path}
|
||||
:content content
|
||||
:format format})))
|
||||
|
||||
(and format (contains? (config/text-formats) format))
|
||||
(when-let [file-content (db/get-file path)]
|
||||
(let [content (string/trim file-content)
|
||||
|
||||
Reference in New Issue
Block a user