Markdown not rendering properly

It’s likely an issue with indentation: In markdown, if the text is indented, it treats it as a codeblock.

Try wrapping your text in:

from textwrap import dedent

dcc.Markdown(dedent('''
     # Header
     Text
'''))
5 Likes