Skip to content

[HOLD for payment 2023-05-22] [$2000] Update ExpensiMark to recognize mentions #17882

Description

@puneetlath

This is part of the mentions project and is one of the features that we'd like to ship before EC3

ExpensiMark is the system that converts markdown in chat messages into html for storage (e.g. *bold text* to <strong>bold text</strong>).

We need to update ExpensiMark to:

  1. Recognize text in the form of @email@domain.com in chat messages and replace it with <mention-user>@email@domain.com</mention-user>
  2. Recognize text in the form of @here in chat messages and replace it with <mention-here>@here</mention-here>

We should only replace mentions if the @ symbol comes at the beginning of a word.

Examples that should match for user mentions:

Examples that should not match for user mentions:

Examples that should match for here mentions:

Examples that should not match for here mentions:

  • "hi...@here"
  • "here@ how are you?"
  • "@ here hey"

When something is treated as a mention it should not get treated as an email address (meaning we don't make it a mailto link).

Mentions should be allowed within:

  • bold
  • italic
  • strikethrough
  • quote
  • heading1

Mentions should not be allowed within:

  • codefence
  • inline code block
  • link

We will want to wait to merge this PR until the custom renderers for mention-user (#17885) and mention-here (#17886) have been added.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01227cf510add7dd82
  • Upwork Job ID: 1650508959718178816
  • Last Price Increase: 2023-04-25

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributorNewFeatureSomething to build that is a new item.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions