it was indeed a mistake on my part, line-height got applied to code blocks as well as the paragraphs
I fixed it now so that codeblocks do not have a very loose line height.