A period of great hardship followed with many Hungarians imprisoned or shot Hunyadi was young enough to escape from the worst of these problems and was able to continue his education in Pest

Please fix the punctuation.
A period of great hardship followed with many Hungarians imprisoned or shot. Hunyadi was young enough to escape from the worst of these problems and was able to continue his education in Pest.