s

Markdown



Markdown components in Dash

Markdown is an easy way of producing HTML such as lists, tables, bullets, links etc.

A Markdown component can be passed to the children argument of the main html.Div element.

dcc.Markdown

  • Triple quotes can be used for multi-line text
  • An id can be given to the markdown component
  • Styles such as background colour can be applied using the style attribute

Markdown can be used with callback functions and can be useful for adding text to the app that might depend on the selected options.
F-strings formatting can be used to insert variables using curly braces.

Markdown screenshot

Tech used:
  • Python
  • HTML