C.M.
I buy this stuff called Carbona. There are a number of them. # 3 is made exclusively to remove Ink and Crayon. I order it on-line. Carbona.com It also has one for oil and grease. I have dried a piece of clothing before knowing about the stain and have treated it and washed it again and it removes the stain. I've been using Carbona products for years. Did a great job on cleaning the carpet on the stairs.
Good luck, C.