Hugo's digressions are very long-winded and he could have done with a good editor. However, in some bizarre way, I quite enjoyed them and to some extent could see why they are necessary. The long section about the priest at the beginning shows what a good man he is, with several examples of his goodness, before he gave Valjean the candlesticks.
I also liked the bit with the nuns. In fact I am rather disappointed that this TV adaptation did not follow what happened in the book as it is one of my favourite bits...
In a nutshell, when Valjean and Cosette climb the wall into the convent they come face-to-face with the man Valjean rescued from under the cart in episode one. This man had gone to Paris and become a gardener at the convent. He was very worried about Valjean being there as no man other than him was allowed to be in the convent grounds. But, as Valjean saved his life he feels obliged to help Valjean.
First, they need to find a way of getting Valjean out of the convent in order for him to re-enter legitimately. Fortunately for them, one of the elderly nuns dies and her body is swapped for Valjean. The nun is buried in a crypt in accordance with her wishes, but against city regulations (which is part of the long-winded digressions).
So, Valjean is carried out of the convent in a coffin accompanied by the gardener. The usual gravedigger is a drunk, so the plan is for the gardener to pay the gravedigger to go to an inn, whilst he continues to "bury" the coffin containing what the gravedigger thinks is the nun's body. But, it is not the usual gravedigger, but a teetotaler and jobsworth who is insistent on getting the job done himself.
Eventually, the gardener manages to persuade the teetotal gravedigger to leave the graveyard, but by this time Valjean has almost run out of oxygen and was wondering what on earth was taking so long!
I can't remember where Cosette was whilst all this was going on, but ultimately Valjean and Cosette arrive at the convent via the front door, with the gardener introducing them as his brother and niece. The nuns allow them to stay, Valjean as another gardener and Cosette joins the convent school.