-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[Markdown] Add schemes settings for link #2794
Conversation
Hi @nishimaki10, I fixed the setting problem and the missing style in this PR #2797 Can you move your translates into files at |
@rodrigok I moved translates, and merged latest develop branch. Thanks. |
@nishimaki10 Awesome 😄 |
LGTM |
1 similar comment
LGTM |
|
||
# Support [Text](http://link) | ||
msg = msg.replace(/\[([^\]]+)\]\((https?:\/\/[^\)]+)\)/gm, '<a href="$2" target="_blank">$1</a>') | ||
msg = msg.replace(new RegExp("\\[([^\\]]+)\\]\\(((?:#{schemes}):\\/\\/[^\\)]+)\\)", 'gm'), '<a href="$2" target="_blank">$1</a>') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
;)
@RocketChat/core
Closes #2656
Add
public: true
for settings.Add schemes settings. (Default: http,https)