Function: markdown-validate-language-string

markdown-validate-language-string is a byte-compiled function defined in markdown-mode.el.

Signature

(markdown-validate-language-string WIDGET)

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-validate-language-string (widget)
  (let ((str (widget-value widget)))
    (unless (string= str (markdown-clean-language-string str))
      (widget-put widget :error (format "Invalid language spec: '%s'" str))
      widget)))