[Emacs] Allow query params in org-exported image paths

This commit is contained in:
Ivan Malison 2016-12-28 18:58:16 -08:00
parent 11f0f3717f
commit 75735c24e0
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -3328,6 +3328,17 @@ alphanumeric characters only."
(setq org-html-format-headline-function (setq org-html-format-headline-function
'imalison:org-html-format-heading-function))) 'imalison:org-html-format-heading-function)))
#+END_SRC #+END_SRC
**** Allow with query params in image extentions
#+BEGIN_SRC emacs-lisp :tangle org-config.el
(use-package ox-html
:ensure nil
:config
(setq org-html-inline-image-rules
'(("file" . "\\.\\(jpeg\\|jpg\\|png\\|gif\\|svg\\)\\(\\?.*?\\)?\\'")
("http" . "\\.\\(jpeg\\|jpg\\|png\\|gif\\|svg\\)\\(\\?.*?\\)?\\'")
("https" . "\\.\\(jpeg\\|jpg\\|png\\|gif\\|svg\\)\\(\\?.*?\\)?\\'"))))
#+END_SRC
**** org-projectile **** org-projectile
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package org-projectile (use-package org-projectile