:*
represents the universal selector. It matches every element in nav.html - nav
, ul
, and li
- which means the nav snippet is:
<nav>
<ul>
<li>FlatNotes</li>
</ul>
</nav>
<ul>
<li>FlatNotes</li>
</ul>
<li>FlatNotes</li>
The selector you pass to the snippet definition should point to the single, top level element of your snippet. If you change :*
to match a single element (i.e. :nav
), it ought to give you the snippet you're looking for.