DmMarkdownConfig class

Configuration for DmMarkdown rendering features.

Annotations

Constructors

DmMarkdownConfig({bool enableGfm = true, bool enableKatex = true, bool enableMermaid = false, bool enableCodeHighlight = true, String? codeTheme, Map<String, Widget Function(Element node, BuildContext context)>? blockBuilders, Map<String, InlineSpan Function(Element node, BuildContext context)>? inlineBuilders})
Creates a markdown configuration with optional feature toggles.
const

Properties

blockBuilders Map<String, Widget Function(Element node, BuildContext context)>?
Custom block-level widget builders keyed by element tag.
final
codeTheme String?
Code highlight theme name (maps to highlighting package themes). If null, automatically selected based on ambient brightness: dark → monokai-sublime, light → github.
final
enableCodeHighlight bool
Enable syntax highlighting in fenced code blocks.
final
enableGfm bool
Enable GitHub Flavored Markdown extensions (tables, strikethrough, task lists, autolinks).
final
enableKatex bool
Enable KaTeX math rendering for $...$ and $$...$$.
final
enableMermaid bool
Enable Mermaid diagram rendering for ```mermaid code blocks. Defaults to false — when disabled, mermaid blocks render as syntax-highlighted code.
final
hashCode int
The hash code for this object.
no setterinherited
inlineBuilders Map<String, InlineSpan Function(Element node, BuildContext context)>?
Custom inline span builders keyed by element tag.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited