Function: markdown-ts--emphasis-node-at-point
markdown-ts--emphasis-node-at-point is a byte-compiled function
defined in markdown-ts-mode.el.gz.
Signature
(markdown-ts--emphasis-node-at-point)
Documentation
Return the emphasis node at point, or nil.
Finds the innermost emphasis, strong_emphasis,
strikethrough, or code_span node.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts--emphasis-node-at-point ()
"Return the emphasis node at point, or nil.
Finds the innermost `emphasis', `strong_emphasis',
`strikethrough', or `code_span' node."
(when-let* ((node (treesit-node-at (point) 'markdown-inline)))
(treesit-parent-until
node (lambda (n)
(member (treesit-node-type n)
'("emphasis" "strong_emphasis"
"strikethrough" "code_span"))))))