Function: markdown-ts--fontify-atx-delimiter
markdown-ts--fontify-atx-delimiter is a byte-compiled function defined
in markdown-ts-mode.el.gz.
Signature
(markdown-ts--fontify-atx-delimiter NODE OVERRIDE START END &rest _)
Documentation
Fontify atx_heading delimiter NODE and optionally hide its markup.
NODE is the tree-sitter node representing the delimiter.
Leading whitespace between the delimiter and the heading text is hidden
along with the delimiter when hiding markup.
OVERRIDE, START, and END are passed through to
treesit-fontify-with-override.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts--fontify-atx-delimiter (node override start end &rest _)
"Fontify atx_heading delimiter NODE and optionally hide its markup.
NODE is the tree-sitter node representing the delimiter.
Leading whitespace between the delimiter and the heading text is hidden
along with the delimiter when hiding markup.
OVERRIDE, START, and END are passed through to
`treesit-fontify-with-override'."
(treesit-fontify-with-override
(treesit-node-start node) (treesit-node-end node)
'markdown-ts-delimiter override start end)
(when markdown-ts-hide-markup
(put-text-property (treesit-node-start node)
(save-excursion
(goto-char (treesit-node-end node))
(re-search-forward "[^[:blank:]]" (pos-eol) 'no-error)
(if (eq (point) (pos-eol))
(point)
(1- (point))))
'invisible 'markdown-ts--markup)))