Issue #22: implemented longtext directive with tests