Description
Currently, in Drupal, we're having to reimplement this class to allow it to be a little more flexible so we can multi-purpose it. While we can certainly keep this up in our project, I figured these small additions might be something you'd be interested in porting upstream. If so, we wouldn't have to maintain our own version any longer.
Specifically, in two areas:
- Dynamic symbol:
- Dynamic link pattern handling (allowing a callable to be passed instead):
This allows us to, more easily, provide multiple ways to "map" an @ inline mention (entity, github, twitter and custom) as well as # (entity, custom):
Example

Description
Currently, in Drupal, we're having to reimplement this class to allow it to be a little more flexible so we can multi-purpose it. While we can certainly keep this up in our project, I figured these small additions might be something you'd be interested in porting upstream. If so, we wouldn't have to maintain our own version any longer.
Specifically, in two areas:
This allows us to, more easily, provide multiple ways to "map" an
@inline mention (entity, github, twitter and custom) as well as#(entity, custom):Example
