master a8539b7919e 2/2: markdown-ts-mode: Make inline HTML embed local (bug#81334)

Eli Zaretskii <[email protected]> Sat, 1 Aug 2026 05:47:34 -0400 (EDT)
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: master
commit a8539b7919eccb25d0d52c7ac00dd22e98deed37
Author: Rahul Martim Juliato <[email protected]>
Commit: Eli Zaretskii <[email protected]>

    markdown-ts-mode: Make inline HTML embed local (bug#81334)
    
    * lisp/textmodes/markdown-ts-mode.el (markdown-ts--set-up): Mark
    the html_tag markdown-inline embed as ':local t', matching the
    sibling html_block embed.  Avoids non-local range updates that
    scale poorly on buffers with many inline blocks.
---
 lisp/textmodes/markdown-ts-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/textmodes/markdown-ts-mode.el b/lisp/textmodes/markdown-ts-mode.el
index 6b0b0424095..4938caabcdf 100644
--- a/lisp/textmodes/markdown-ts-mode.el
+++ b/lisp/textmodes/markdown-ts-mode.el
@@ -5313,6 +5313,7 @@ NOTE: Call this function only when the treesit `markdown' and
 
                                 :embed 'html
                                 :host 'markdown-inline
+                                :local t
                                 '((html_tag) @html)))))
 
          (when (treesit-ready-p 'yaml t)