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
'''))
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
'''))