[CLC-2123] Directives followup to deal with html snippets
[CLC-2123] Directives fixes
Merge pull request #1299 from yuhunglin/CLC-2123-directives

[CLC-2123] Directives work for html snippets