enhance(editor): allow edit markup files

pull/3870/head
Andelf 2022-01-11 23:46:11 +08:00
parent 8305c22d03
commit fd00d86d6a
1 changed files with 0 additions and 8 deletions

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)