Make org-yt respect org-display-remote-inline-images
This commit is contained in:
parent
25b240b9b0
commit
6b781c55c2
1 changed files with 5 additions and 1 deletions
|
@ -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 ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue