When you jump toward a ledge, Mario will raise his fist. When his fist is a pixel or two separated from the ledge he is jumping toward, quickly pause the game. Then unpause it and he will float up through the ledge, as if his jump carried him directly through it. Precision timing is required. If you pause too early or too late, it won't work.