yes, snippets can surround text, read the bottom couple of parapgraphs of
https://manual.calibre-ebook.com/sni...tml-link-tag-a
and to expand ctrl+alt+t to the parent tag, after pressing it simply hold down shift and move the cursor beyond the edge of the closing tag and press catrl+alt+t again.