Function: eca-table--count-markup-chars
eca-table--count-markup-chars is a natively compiled function defined
in eca-table.el.
Signature
(eca-table--count-markup-chars TEXT)
Documentation
Count hidden bold/italic * delimiters in TEXT.
Matches **text** (4 chars) and *text* (2 chars).
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-table.el
(defun eca-table--count-markup-chars (text)
"Count hidden bold/italic `*' delimiters in TEXT.
Matches **text** (4 chars) and *text* (2 chars)."
(let ((count 0)
(start 0))
(while (string-match
"\\(\\*\\{1,2\\}\\)\\([^*].*?\\)\\1"
text start)
(setq count (+ count (* 2 (length
(match-string 1 text)))))
(setq start (match-end 0)))
count))