Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/cleanup eww live export #53

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions markdown-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -5146,11 +5146,11 @@ buffer. Inverse of `markdown-live-preview-buffer'.")

(defun markdown-live-preview-window-eww (file)
"A `markdown-live-preview-window-function' for previewing with eww."
(if (eval-when-compile (featurep 'eww))
(if (featurep 'eww)
(progn
(eww-open-file file)
(get-buffer "*eww*"))
(error "eww is not present on this version of emacs")))
(error "eww is not present or not loaded on this version of emacs")))

(defun markdown-live-preview-window-serialize (buf)
"Get window point and scroll data for all windows displaying BUF if BUF is
Expand Down
1 change: 0 additions & 1 deletion tests/markdown-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -3225,7 +3225,6 @@ indented the same amount."
(unless (featurep 'eww)
(should-error (markdown-live-preview-mode)))
(markdown-temp-eww
(message "%s" "hey")
(markdown-live-preview-mode)
(should (buffer-live-p markdown-live-preview-buffer))
(should (eq (current-buffer)
Expand Down