An often used TextExpander snippet grabs title and URL from Safari. Tab groups upset it. Updated:

tell application “Safari”
 set theName to name of current tab of front window
 set theURL to URL of current tab of front window
 return “[“ & theName & ”](” & theURL & “)”
end tell
Screen Shot of the snippet.

Miraz Jordan @Miraz