Function: markdown-preview

markdown-preview is an interactive and natively 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

markdown-mode-command-map p markdown-mode-map C-c C-c p

Source Code

;; Defined in /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/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))))