Added description to media + agnostic embed
This commit is contained in:
parent
31a71b188e
commit
9b2eac201b
|
@ -39,7 +39,9 @@
|
||||||
(each m media
|
(each m media
|
||||||
(def url (m "url"))
|
(def url (m "url"))
|
||||||
(def folder (string save-path "attachments/"))
|
(def folder (string save-path "attachments/"))
|
||||||
(array/push files (string "attachments/" (media/get-image url folder))))
|
(array/push files {:path (string "./attachments/" (media/get-image url folder))
|
||||||
|
:description (m "description")}))
|
||||||
|
(pp files)
|
||||||
files)
|
files)
|
||||||
|
|
||||||
|
|
||||||
|
@ -59,7 +61,10 @@
|
||||||
" \n"))
|
" \n"))
|
||||||
|
|
||||||
(def media (string/join
|
(def media (string/join
|
||||||
(map (fn [arg] (string "![[" arg "]]")) files) " "))
|
(map (fn [arg] (string
|
||||||
|
"![](" (arg :path) ")\n "
|
||||||
|
(arg :description)))
|
||||||
|
files) " "))
|
||||||
|
|
||||||
(file/write fout
|
(file/write fout
|
||||||
(string
|
(string
|
||||||
|
|
Loading…
Reference in New Issue
Block a user