Add support for text directive