Fixes #7 regarding encapsulated snippets