Make chunk text object filetype dependent (md, tex)