Make org-yt respect org-display-remote-inline-images

This commit is contained in:
Henrik Lissner 2020-06-28 01:17:53 -04:00
parent 25b240b9b0
commit 6b781c55c2
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -421,7 +421,11 @@ relative to `org-directory', unless it is an absolute path."
(org-link-set-parameters "img" :image-data-fun #'+org-inline-image-data-fn) (org-link-set-parameters "img" :image-data-fun #'+org-inline-image-data-fn)
;; Add support for youtube links + previews ;; Add support for youtube links + previews
(require 'org-yt nil t)) (require 'org-yt nil t)
(defadvice! +org-dont-preview-if-disabled-a (&rest _)
"Make `org-yt' respect `org-display-remote-inline-images'."
:before-while #'org-yt-image-data-fun
(not (eq org-display-remote-inline-images 'skip))))
(defun +org-init-export-h () (defun +org-init-export-h ()