Function: markdown-ts--heading-ids
markdown-ts--heading-ids is a byte-compiled function defined in
markdown-ts-mode.el.gz.
Signature
(markdown-ts--heading-ids)
Documentation
Return the heading-id hash table for the current buffer.
Cache is rebuilt only when buffer-chars-modified-tick has advanced
since the last call (mirrors markdown-ts--link-ref-cache).
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts--heading-ids ()
"Return the heading-id hash table for the current buffer.
Cache is rebuilt only when `buffer-chars-modified-tick' has advanced
since the last call (mirrors `markdown-ts--link-ref-cache')."
(let ((tick (buffer-chars-modified-tick)))
(unless (eq tick markdown-ts--heading-id-cache-tick)
(setq markdown-ts--heading-id-cache (markdown-ts--build-heading-ids)
markdown-ts--heading-id-cache-tick tick))
markdown-ts--heading-id-cache))