enhance(editor): allow edit markup files

This commit is contained in:
Andelf
2022-01-11 23:46:11 +08:00
parent 8305c22d03
commit fd00d86d6a

View File

@@ -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)