"It was an act of brutal, sustained and wholly unprovoked violence," Mr Jackson added.
"He knew he was not only killing her but their unborn child as well."
Residents living near the scene of the alleged attack in the town's Howard Way, minutes from Ms Blunnie's home, heard her "horrific" screams and the impact of the blows.
Ms Blunnie, who was due to give birth within days, was later found with severe head and facial injuries and died in hospital.
After the alleged killings, McLernon hid in nearby woodlands and sent a text message to his father saying "I'm scared".
He later spoke to his father on the phone and told him "I think I've killed Eystna", the court heard.
A man has been found guilty of murdering his heavily pregnant former girlfriend and deliberately killing her unborn baby.
The man accused of murdering his ex-partner and their unborn child has been giving evidence at his trial.