Skip to content

Feature Request: Allow InlineMentionParser to be a little more dynamic #473

Closed
@markhalliwell

Description

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:

  1. Dynamic symbol:
  2. 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
Screen Shot 2020-05-12 at 7 34 18 AM

Metadata

Assignees

Labels

do not closeIssue which won't close due to inactivityenhancementNew functionality or behaviorimplementedChange has been implemented

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions