Function: markdown-gfm-parse-buffer-for-languages
markdown-gfm-parse-buffer-for-languages is a natively compiled
function defined in markdown-mode.el.
Signature
(markdown-gfm-parse-buffer-for-languages &optional BUFFER)
Source Code
;; Defined in /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/markdown-mode.el
(defun markdown-gfm-parse-buffer-for-languages (&optional buffer)
(with-current-buffer (or buffer (current-buffer))
(save-excursion
(goto-char (point-min))
(cl-loop
with prop = 'markdown-gfm-block-begin
for pos-prop = (markdown-find-next-prop prop)
while pos-prop
for lang = (markdown-code-block-lang pos-prop)
do (progn (when lang (markdown-gfm-add-used-language lang))
(goto-char (or (next-single-property-change (point) prop)
(point-max))))))))