Yes I think it is a CSS issue which means you need to override the CSS set already probably by a theme.
I am using a theme from the Github Pages themes which adds a extra padding around code block text in a sentence (so the reverse of your problem where you have overlap). Inspecting in devtools allow me to see what CSS is set on the item, tweak it directly in devtools then I can plan my project override of the CSS.