File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -6089,7 +6089,9 @@ the rendered output."
6089
6089
(when (buffer-live-p markdown-live-preview-view-buffer)
6090
6090
; ; calls `kill-buffer-hook' within `markdown-live-preview-view-buffer'
6091
6091
(kill-buffer markdown-live-preview-view-buffer))
6092
- (when (process-live-p markdown-live-preview-currently-exporting-process)
6092
+ (when (and markdown-live-preview-currently-exporting-process
6093
+ (process-live-p markdown-live-preview-currently-exporting-process))
6094
+ (set-process-sentinel markdown-live-preview-currently-exporting-process nil )
6093
6095
(delete-process markdown-live-preview-currently-exporting-process))
6094
6096
(setq markdown-live-preview-view-buffer nil
6095
6097
markdown-live-preview-currently-exporting-process nil )
@@ -6716,7 +6718,8 @@ before regenerating font-lock rules for extensions."
6716
6718
:group 'markdown-mode
6717
6719
:lighter " MD-Preview"
6718
6720
(if markdown-live-preview-mode
6719
- (markdown-live-preview-setup)
6721
+ (condition-case nil (markdown-live-preview-setup)
6722
+ (error (markdown-live-preview-mode -1 )))
6720
6723
(markdown-live-preview-teardown-source)))
6721
6724
6722
6725
Original file line number Diff line number Diff line change @@ -3755,8 +3755,6 @@ Detail: https://github.com/jrblevin/markdown-mode/issues/79"
3755
3755
3756
3756
(defun markdown-test/live-preview-exports ()
3757
3757
(markdown-test-temp-file " inline.text"
3758
- (unless (require 'eww nil t )
3759
- (should-error (markdown-live-preview-mode )))
3760
3758
(let ((markdown-live-preview-idle-delay .01 ))
3761
3759
(markdown-temp-eww
3762
3760
(markdown-live-preview-mode )
@@ -3775,6 +3773,8 @@ Detail: https://github.com/jrblevin/markdown-mode/issues/79"
3775
3773
3776
3774
(ert-deftest test-markdown-ext/live-preview-exports-sync ()
3777
3775
(let ((markdown-live-preview-do-sync t ))
3776
+ (unless (require 'eww nil t )
3777
+ (should-error (markdown-live-preview-sync-export)))
3778
3778
(markdown-test/live-preview-exports)))
3779
3779
3780
3780
(ert-deftest test-markdown-ext/live-preview-exports-async ()
You can’t perform that action at this time.
0 commit comments