Markdown constructor

const Markdown(
  1. String content, {
  2. RenderConfig renderConfig = const RenderConfig(),
  3. MarkdownOptions options = const MarkdownOptions(),
})

Creates a markdown component with the given content.

The content is parsed and rendered to ANSI-styled output. Use renderConfig to configure terminal width and background theme. Use options for additional customization.

Implementation

const Markdown(
  this.content, {
  this.renderConfig = const RenderConfig(),
  this.options = const MarkdownOptions(),
});