Function: forge--fontify-markdown
forge--fontify-markdown is a byte-compiled function defined in
forge-topic.el.
Signature
(forge--fontify-markdown TEXT &optional INDENT)
Source Code
;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-topic.el
(t "#000000"))) ; Use fallback instead of invalid color.
;;; Markdown Utilities
(defun forge--fontify-markdown (text &optional indent)
(with-temp-buffer
(delay-mode-hooks
(gfm-mode))
(insert text)
(font-lock-ensure)
(when forge-post-fill-region
(when indent
(setq fill-column (- fill-column indent)))
(fill-region (point-min) (point-max)))
(when indent
(indent-rigidly (point-min) (point-max) indent))
(let* ((string (buffer-string))
(beg 0)
(end (length string)))
(while (< beg end)
(let ((pos (next-single-property-change beg 'face string end))
(val (get-text-property beg 'face string)))
(put-text-property beg pos 'font-lock-face val string)
(remove-list-of-text-properties beg pos '(face) string)
(setq beg pos)))
string)))