Function: htmlfontify-string
htmlfontify-string is a byte-compiled function defined in
htmlfontify.el.gz.
Signature
(htmlfontify-string STRING)
Documentation
Take a STRING and return a fontified version of it.
It is assumed that STRING has text properties that allow it to be
fontified. This is a simple convenience wrapper around
htmlfontify-buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/htmlfontify.el.gz
(defun htmlfontify-string (string)
"Take a STRING and return a fontified version of it.
It is assumed that STRING has text properties that allow it to be
fontified. This is a simple convenience wrapper around
`htmlfontify-buffer'."
(let* ((hfy-optimizations-1 (copy-sequence hfy-optimizations))
(hfy-optimizations (cl-pushnew 'skip-refontification hfy-optimizations-1)))
(with-temp-buffer
(insert string)
(htmlfontify-buffer)
(buffer-string))))