Function: markdown-standalone

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

Signature

(markdown-standalone &optional OUTPUT-BUFFER-NAME TITLE)

Documentation

Special function to provide standalone HTML output.

Insert the output in the buffer named OUTPUT-BUFFER-NAME. Set the HTML title to TITLE if provided, otherwise the name of the output buffer.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-standalone (&optional output-buffer-name title)
  "Special function to provide standalone HTML output.
Insert the output in the buffer named OUTPUT-BUFFER-NAME.
Set the HTML title to TITLE if provided, otherwise the name of the
output buffer."
  (interactive)
  (setq output-buffer-name (markdown output-buffer-name))
  (let ((css-path markdown-css-paths))
    (with-current-buffer output-buffer-name
      (set-buffer output-buffer-name)
      (setq-local markdown-css-paths css-path)
      (unless (markdown-output-standalone-p)
        (markdown-add-xhtml-header-and-footer (or title output-buffer-name)))
      (goto-char (point-min))
      (html-mode)))
  output-buffer-name)