Function: denote-get-file-type-markdown-toml

denote-get-file-type-markdown-toml is a byte-compiled function defined in denote.el.

Signature

(denote-get-file-type-markdown-toml FILE)

Documentation

Return markdown-toml if FILE has TOML front matter.

TOML front matter starts with +++ on the first line.

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-get-file-type-markdown-toml (file)
  "Return `markdown-toml' if FILE has TOML front matter.
TOML front matter starts with +++ on the first line."
  (with-temp-buffer
    (insert-file-contents file)
    (goto-char (point-min))
    (when (looking-at (format "^%s" (make-string 3 ?+)))
      'markdown-toml)))