Function: markdown-match-inline-attributes

markdown-match-inline-attributes is a byte-compiled function defined in markdown-mode.el.

Signature

(markdown-match-inline-attributes LAST)

Documentation

Match inline attributes from point to LAST.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-match-inline-attributes (last)
  "Match inline attributes from point to LAST."
  ;; #428 re-search-forward markdown-regex-inline-attributes is very slow.
  ;; So use simple regex for re-search-forward and use markdown-regex-inline-attributes
  ;; against matched string.
  (when (markdown-match-inline-generic "[ \t]*\\({\\)\\([^\n]*\\)}[ \t]*$" last)
    (if (not (string-match-p markdown-regex-inline-attributes (match-string 0)))
        (markdown-match-inline-attributes last)
      (unless (or (markdown-inline-code-at-pos-p (match-beginning 0))
                  (markdown-inline-code-at-pos-p (match-end 0))
                  (markdown-in-comment-p))
        t))))