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

We should support autolinking matrix aliases, Ids and usernames in the editor #7

Open
MTRNord opened this issue May 19, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@MTRNord
Copy link
Owner

MTRNord commented May 19, 2023

Relevant lines:

const MATCHERS: LinkMatcher[] = [
(text) => {
const match = URL_MATCHER.exec(text);
return (
match && {
index: match.index,
length: match[0].length,
text: match[0],
url: match[0]
}
);
},
(text) => {
const match = EMAIL_MATCHER.exec(text);
return (
match && {
index: match.index,
length: match[0].length,
text: match[0],
url: `mailto:${match[0]}`
}
);
}
];

@MTRNord MTRNord added enhancement New feature or request good first issue Good for newcomers labels May 19, 2023
@MTRNord
Copy link
Owner Author

MTRNord commented May 19, 2023

(Clarification: We should autolink to matrix: (mind the missing slashes!) and NOT to matrix.to. We only want matrix.to support on the reading side for support of legacy clients. We will not support sending matrix.to links)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant