plugins property
Parser plugins for extending markdown syntax.
Use this to add custom inline and block-level syntax extensions like @mentions, #hashtags, :emoji: shortcodes, or custom callout blocks.
Example:
final plugins = ParserPluginRegistry()
..register(MentionPlugin())
..register(HashtagPlugin())
..register(EmojiPlugin());
SmoothMarkdown(
data: 'Hello @user :wave:',
plugins: plugins,
builderRegistry: customBuilders, // Register builders for plugin nodes
)
Note: When using plugins, you also need to register custom builders via builderRegistry to render the plugin nodes.
Implementation
final ParserPluginRegistry? plugins;