Function: markdown-ts-buffer-string
markdown-ts-buffer-string is an autoloaded and byte-compiled function
defined in markdown-ts-mode.el.gz.
Signature
(markdown-ts-buffer-string)
Documentation
Like buffer-string, and convert overlay properties to text properties.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
;;; Mode utilities:
;;;###autoload
(defun markdown-ts-buffer-string ()
"Like `buffer-string', and convert overlay properties to text properties."
(let ((str (buffer-string)))
(dolist (ov (overlays-in (point-min) (point-max)) str)
(when-let* ((face (overlay-get ov 'face)))
(font-lock-append-text-property
(overlay-start ov) (overlay-end ov) 'face face str)))))