Code blocks in Discord change the text’s background of the messages you’re sending. Markdown, on the other hand, uses code to change the formatting of the text itself. You can make the text have a bold, italic, or underlined format with markdown.