Searched refs:MentionParser (Results 1 – 4 of 4) sorted by relevance
/plugin/commonmark/vendor/league/commonmark/src/Extension/Mention/ |
H A D | MentionExtension.php | 51 $environment->addInlineParser(new MentionParser($name, $mention['prefix'], $mention['pattern'], $mention['generator'])); 53 $environment->addInlineParser(MentionParser::createWithStringTemplate($name, $mention['prefix'], $mention['pattern'], $mention['generator'])); 55 $environment->addInlineParser(MentionParser::createWithCallback($name, $mention['prefix'], $mention['pattern'], $mention['generator'])); 57 throw new InvalidConfigurationException(\sprintf('The "generator" provided for the "%s" MentionParser configuration must be a string template, callable, or an object that implements %s.', $name, MentionGeneratorInterface::class));
|
H A D | MentionParser.php | 23 final class MentionParser implements InlineParserInterface 78 public static function createWithStringTemplate(string $name, string $prefix, string $mentionRegex, string $urlTemplate): MentionParser 83 public static function createWithCallback(string $name, string $prefix, string $mentionRegex, callable $callback): MentionParser 20 final class MentionParser implements InlineParserInterface global() class
|
/plugin/commonmark/vendor/league/commonmark/src/Extension/Autolink/ |
H A D | InlineMentionParser.php |
|
/plugin/commonmark/vendor/league/commonmark/ |
H A D | CHANGELOG.md | 496 - Removed the `InlineMentionParser` (use `MentionParser` instead)
|