MDL-69911 core: Clean content passed through TeX filter