mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-05-30 17:22:17 -07:00
Make 'markdown-ts-inline-images' buffer local and test for GUI (bug#80978)
* lisp/textmodes/markdown-ts-mode.el (markdown-ts-inline-images): Now buffer local. (markdown-ts--fontify-image): Defensively test for graphical display before rendering images.
This commit is contained in:
parent
a0c05029fd
commit
a00beb3a31
1 changed files with 3 additions and 0 deletions
|
|
@ -279,6 +279,8 @@ use that string instead."
|
|||
(defcustom markdown-ts-inline-images nil
|
||||
"Non-nil means display inline images below image links."
|
||||
:type 'boolean
|
||||
:local t
|
||||
:safe #'booleanp
|
||||
:version "31.1"
|
||||
:package-version "1.0")
|
||||
|
||||
|
|
@ -1524,6 +1526,7 @@ Remote images are controlled by
|
|||
(<= (overlay-end ov) search-end))
|
||||
(delete-overlay ov)))
|
||||
(when (and markdown-ts-inline-images
|
||||
(display-images-p)
|
||||
;; Don't create image overlays for nodes inside
|
||||
;; folded (outline-invisible) headings, since the
|
||||
;; images wouldn't be visible and could interfere
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue