The default code block formatting can look odd. This is because templates and themes can be sometimes hard to follow. A small additional CSS can fix this formatting issue:
.notion-code code, .notion-code pre {
text-shadow: rgba(255,255,255,.1) 1px 1px !important;
background-color: #ddd !important;
}