Function: markdown-preview

markdown-preview is an interactive and byte-compiled function defined in markdown-mode.el.

Signature

(markdown-preview &optional OUTPUT-BUFFER-NAME)

Documentation

Run markdown-command on the current buffer and view output in browser.

When OUTPUT-BUFFER-NAME is given, insert the output in the buffer with that name.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-preview (&optional output-buffer-name)
  "Run `markdown-command' on the current buffer and view output in browser.
When OUTPUT-BUFFER-NAME is given, insert the output in the buffer with
that name."
  (interactive)
  (browse-url-of-buffer
   (markdown-standalone (or output-buffer-name markdown-output-buffer-name)
                        (buffer-name))))