mirror of https://github.com/logseq/logseq
enhance(editor): allow edit markup files
parent
8305c22d03
commit
fd00d86d6a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue