[CLC-2123] Directives work for html snippets

JIRA: https://jira.media.berkeley.edu/jira/browse/CLC-2123