LinkMatcher constructor

const LinkMatcher([
  1. String pattern = r'\[(.+?)\]\((.*?)\)'
])

Creates a LinkMatcher for parsing Markdown link format.

This is useful if used together with SelectiveDefinition.

Note that this matcher does not treat nested brackets or braces in the same way as real Markdown parsers do.

The preset pattern is overwritten if a custom pattern is provided.

Implementation

const LinkMatcher([super.pattern = r'\[(.+?)\]\((.*?)\)']);