replacing embeds with snippets