The rush-hour incident caused delays and cancellations between Harrogate and York, as well as long road tailbacks.
Train lines were closed after the 27-year-old woman was struck by a train on the Belmont crossing at 8am.
Passengers were made to leave one train and told to wait for buses into Leeds.
A British Transport Police statement said: “The female, a 27 year-old local woman, has suffered head injuries. She was treated at the scene by paramedics from North Yorkshire Ambulance Service and has now been taken to Harrogate Hospital.
“Enquiries are ongoing to establish the circumstances surrounding the incident.”
The train involved was the 07.56 Knaresborough to Leeds Service.
Separetely, the A61 Harrogate Road in Harewood was closed causing traffic queues at Harewood, Leeds, after a lorry spilled its load of diesel on the road.