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."
60896089 (when (buffer-live-p markdown-live-preview-view-buffer)
60906090 ;; calls `kill-buffer-hook' within `markdown-live-preview-view-buffer'
60916091 (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)
60936095 (delete-process markdown-live-preview-currently-exporting-process))
60946096 (setq markdown-live-preview-view-buffer nil
60956097 markdown-live-preview-currently-exporting-process nil)
@@ -6716,7 +6718,8 @@ before regenerating font-lock rules for extensions."
67166718 :group 'markdown-mode
67176719 :lighter " MD-Preview"
67186720 (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)))
67206723 (markdown-live-preview-teardown-source)))
67216724
67226725
Original file line number Diff line number Diff line change @@ -3755,8 +3755,6 @@ Detail: https://github.com/jrblevin/markdown-mode/issues/79"
37553755
37563756(defun markdown-test/live-preview-exports ()
37573757 (markdown-test-temp-file "inline.text"
3758- (unless (require 'eww nil t)
3759- (should-error (markdown-live-preview-mode)))
37603758 (let ((markdown-live-preview-idle-delay .01))
37613759 (markdown-temp-eww
37623760 (markdown-live-preview-mode)
@@ -3775,6 +3773,8 @@ Detail: https://github.com/jrblevin/markdown-mode/issues/79"
37753773
37763774(ert-deftest test-markdown-ext/live-preview-exports-sync ()
37773775 (let ((markdown-live-preview-do-sync t))
3776+ (unless (require 'eww nil t)
3777+ (should-error (markdown-live-preview-sync-export)))
37783778 (markdown-test/live-preview-exports)))
37793779
37803780(ert-deftest test-markdown-ext/live-preview-exports-async ()
You can’t perform that action at this time.
0 commit comments