ob-ein support automatically create direct with parents

This commit is contained in:
stardiviner 2018-11-26 14:57:31 +08:00
parent 36afeaa6ea
commit f6e55fde96
No known key found for this signature in database
GPG key ID: 1B5DF1C95AE89AC3

View file

@ -74,7 +74,7 @@ For example, call (ein:org-register-lang-mode \"ein-R\" 'R) to define a language
(d ein:org-inline-image-directory)
(tf (concat d "/ob-ein-" f ".png")))
(unless (file-directory-p d)
(make-directory d))
(make-directory d 'parents))
tf))
(defun ein:write-base64-image (img-string file)