branch: elpa/markdown-mode commit 0f7eae811308f92b8681b5411f7a5035d1fcd5a7 Merge: b094ae0ac9 1eeb65dece Author: Shohei YOSHIDA <syo...@gmail.com> Commit: GitHub <nore...@github.com>
Merge pull request #745 from kimim/clear-image-cache clear-image-cache when remove inline image --- CHANGES.md | 1 + markdown-mode.el | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 7c62a7c0d0..d2fd6426a3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -17,6 +17,7 @@ - Don't spell-check against pandoc references. [GH-572][] - Support tree-sitter-based major modes used by Emacs 29. - Highlight "geo" URI scheme [GH-739][] + - `clear-image-cache` to make toggle inline image update. * Bug fixes: - Don't override table faces by link faces [GH-716][] diff --git a/markdown-mode.el b/markdown-mode.el index 0133e07d3c..7774a343c6 100644 --- a/markdown-mode.el +++ b/markdown-mode.el @@ -8605,7 +8605,8 @@ This can be toggled with `markdown-toggle-inline-images' or \\[markdown-toggle-inline-images]." (interactive) (mapc #'delete-overlay markdown-inline-image-overlays) - (setq markdown-inline-image-overlays nil)) + (setq markdown-inline-image-overlays nil) + (when (fboundp 'clear-image-cache) (clear-image-cache))) (defcustom markdown-display-remote-images nil "If non-nil, download and display remote images.