Handle the parent id situation by setting a html id attribute on each snippet