Function: markdown-live-preview-window-eww
markdown-live-preview-window-eww is a byte-compiled function defined
in markdown-mode.el.
Signature
(markdown-live-preview-window-eww FILE)
Documentation
Preview FILE with eww.
To be used with markdown-live-preview-window-function.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-live-preview-window-eww (file)
"Preview FILE with eww.
To be used with `markdown-live-preview-window-function'."
(when (and (bound-and-true-p eww-auto-rename-buffer)
markdown-live-preview-buffer)
(kill-buffer markdown-live-preview-buffer))
(eww-open-file file)
;; #737 if `eww-auto-rename-buffer' is non-nil, the buffer name is not "*eww*"
;; Try to find the buffer whose name ends with "eww*"
(if (bound-and-true-p eww-auto-rename-buffer)
(cl-loop for buf in (buffer-list)
when (string-match-p "eww\\*\\'" (buffer-name buf))
return buf)
(get-buffer "*eww*")))