[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/markdown-mode 0085875 4/8: Merge pull request #579 from no
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/markdown-mode 0085875 4/8: Merge pull request #579 from nobiot/feat/inline-image-size-no-imagemagick |
Date: |
Wed, 6 Jan 2021 19:57:12 -0500 (EST) |
branch: elpa/markdown-mode
commit 00858754c0e8e7b413a21862aac8387351486cfe
Merge: e250a84 6f97180
Author: Shohei YOSHIDA <syohex@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #579 from nobiot/feat/inline-image-size-no-imagemagick
Feat/inline image size no imagemagick
---
CHANGES.md | 1 +
markdown-mode.el | 16 ++++++++++------
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/CHANGES.md b/CHANGES.md
index 9a1d580..788cd1e 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -24,6 +24,7 @@
- Enable flyspell check at yaml metadata[GH-560][]
- Clean up Makefile
- Support to display local image with percent encoding file path
+ - Add ability to resize inline image display
(`markdown-toggle-inline-images`) without Imagemagick installed in the computer
(emulating Org Mode)
* Bug fixes:
- Fix remaining flyspell overlay in code block or comment issue
[GH-311][]
diff --git a/markdown-mode.el b/markdown-mode.el
index b27ad49..64e5ac0 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -8429,13 +8429,17 @@ or \\[markdown-toggle-inline-images]."
unhex_file
(concat default-directory unhex_file)))
(image
- (if (and markdown-max-image-size
+ (cond ((and markdown-max-image-size
(image-type-available-p 'imagemagick))
- (create-image
- abspath 'imagemagick nil
- :max-width (car markdown-max-image-size)
- :max-height (cdr markdown-max-image-size))
- (create-image abspath))))
+ (create-image
+ abspath 'imagemagick nil
+ :max-width (car markdown-max-image-size)
+ :max-height (cdr markdown-max-image-size)))
+ (markdown-max-image-size
+ (create-image abspath nil nil
+ :max-width (car
markdown-max-image-size)
+ :max-height (cdr
markdown-max-image-size)))
+ (t (create-image abspath)))))
(when image
(let ((ov (make-overlay start end)))
(overlay-put ov 'display image)
- [nongnu] elpa/markdown-mode updated (e250a84 -> 137696f), ELPA Syncer, 2021/01/06
- [nongnu] elpa/markdown-mode fc733be 1/8: feat: Add resize inline image without imagemagick, ELPA Syncer, 2021/01/06
- [nongnu] elpa/markdown-mode 0085875 4/8: Merge pull request #579 from nobiot/feat/inline-image-size-no-imagemagick,
ELPA Syncer <=
- [nongnu] elpa/markdown-mode 6724a2c 5/8: Added optional support for inserting braces in GFM code block header, ELPA Syncer, 2021/01/06
- [nongnu] elpa/markdown-mode 6f97180 3/8: Update CHANGELOG, ELPA Syncer, 2021/01/06
- [nongnu] elpa/markdown-mode da7b9df 2/8: Update CHANGELOG, ELPA Syncer, 2021/01/06
- [nongnu] elpa/markdown-mode d5106ff 6/8: Add unit test for markdown code block braces, ELPA Syncer, 2021/01/06
- [nongnu] elpa/markdown-mode ec6ae58 7/8: Merge remote-tracking branch 'origin/master' into pr-581, ELPA Syncer, 2021/01/06
- [nongnu] elpa/markdown-mode 137696f 8/8: Merge branch 'pr-581', ELPA Syncer, 2021/01/06