Remove a few markdown extensions from a function