With some themes and templates, the default code block formatting can look odd. 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;
}