joaotavora / yasnippet

A template system for Emacs
http://joaotavora.github.io/yasnippet/
2.81k stars 311 forks source link

Issue with markup #999

Open SNTag opened 5 years ago

SNTag commented 5 years ago

After enabling hide markup in markdown-mode, yasnippets has responded weirdly to tab jump points (meaning $1, $2, $0, etc).

For instance, when using yasnippet link with code [${1:Link Text}](${2:URL} $3) $0, cursor will start at $1. Pressing tab with markup hidden will cause a jump to the end of the snippet (not $0, but after it, confirmed by playing with the code on my system).

edit: made it clearer that I'm enabling hide markup. Meaning markup notation is actually used in buffer (ex. Bold becomes Bold).

npostavs commented 5 years ago

Right, I think we need to disable invisibility within snippets, see #1001.