Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Showing mentions in markdown in the composer #708

Open
alunturner opened this issue Jun 6, 2023 · 0 comments
Open

Showing mentions in markdown in the composer #708

alunturner opened this issue Jun 6, 2023 · 0 comments

Comments

@alunturner
Copy link
Contributor

Relates to: https://github.com/vector-im/verticals-internal/issues/96

Work is currently being done to change over mentions from being immutable links to being their own type, a MentionNode.

When we did this, we decided that a mention, when output as markdown, should be output as a plain text mxId. This causes issues for iOS which was previously using the link type markup [link text](link url) to determine what should be represented as a pill.

We think it should be possible to format a mention as a pill (ie a tag looking something like <a contenteditable="false" data-mention-type="user">...</a>) and insert this inside the markdown.

This probably means that we would require two markdown outputs, similar to what we are working on for html. Likely lib functions would be functions that allow us to:

  • output html in the composer format
  • output html in the matrix message format
  • output markdown in the composer format (ie with mentions formatted as html)
  • output markdown in the matrix message format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants