Verified Commit bb5eadb6 authored by Jay Kamat's avatar Jay Kamat

Make images clickable again

fix a bug in ox-twbs in org 9
parent 75c005c7
......@@ -247,6 +247,15 @@ representation for the files to include, as returned by
(org-set-property "RSS_PERMALINK" rss-permalink))))
(buffer-string)))
;; Make org-twbs links clickable...
(defun org-twbs--format-image-wrap (fun source attributes info)
"Wrap org-twbs--format-image to make all images clickable."
(format
"<a href=\"%s\">%s</a>"
source
(apply fun `(,source ,attributes ,info))))
(advice-add 'org-twbs--format-image :around #'org-twbs--format-image-wrap)
(provide 'jgkamat-website)
;;; jgkamat-website.el ends here
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment