Skip to main content

markdown

Markdown

from dara.components.common.markdown import Markdown

class Markdown(BaseDashboardComponent)

Markdown

A Markdown component is a basic component for displaying bulky text blocks. It takes a string of text that is then rendered as markdown. Supports gfm (GitHub Flavored Markdown).

A Markdown component is created via:

from dara.components.common import Markdown

Markdown(' ## Heading\n ### Subheading')

Arguments:

  • markdown: a string of markdown to render
  • html_raw: whether to render HTML included in the markdown; disabled by default as this can be a security risk if the markdown is user-provided

Attributes

  • markdown: Union[NonDataVariable, str]
  • html_raw: bool