Revert "Set html snippet in metadata instead of gen.context"

This reverts commit 7192588a37621b75da96930984594ca06e2c5ece.
Fixed indentiation and missing parenthesis