mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
[MM-23180] Take full-width punctuation marks as boundary for hyperlinks (#30084)
This commit is contained in:
parent
0acadb7b93
commit
b7d95f5368
3 changed files with 11 additions and 4 deletions
|
|
@ -52,7 +52,7 @@
|
|||
"lodash": "4.17.21",
|
||||
"luxon": "3.3.0",
|
||||
"mark.js": "8.11.1",
|
||||
"marked": "github:mattermost/marked#2ef7f28cc7718e3f551c4ce9ea75fdd7580c2008",
|
||||
"marked": "github:mattermost/marked#3b13ba8ddf725327ddf0298361d6d304a021f2d1",
|
||||
"memoize-one": "6.0.0",
|
||||
"moment-timezone": "0.5.38",
|
||||
"p-queue": "7.3.0",
|
||||
|
|
|
|||
|
|
@ -283,6 +283,12 @@ describe('formatWithRenderer | LinkOnlyRenderer', () => {
|
|||
inputText: 'Let\'s try http://example/result?things={stuff}',
|
||||
outputText: 'Let's try <a class="theme markdown__link" href="http://example/result?things={stuff}" target="_blank">http://example/result?things={stuff}</a>',
|
||||
},
|
||||
{
|
||||
description: 'link: link with a full-length punctuation',
|
||||
inputText: 'Do you like https://mattermost.com/,這是第二個網址。?',
|
||||
outputText: 'Do you like <a class="theme markdown__link" href="https://mattermost.com/" target="_blank">' +
|
||||
'https://mattermost.com/</a>,這是第二個網址。?',
|
||||
},
|
||||
];
|
||||
|
||||
const linkOnlyRenderer = new LinkOnlyRenderer();
|
||||
|
|
|
|||
7
webapp/package-lock.json
generated
7
webapp/package-lock.json
generated
|
|
@ -105,7 +105,7 @@
|
|||
"lodash": "4.17.21",
|
||||
"luxon": "3.3.0",
|
||||
"mark.js": "8.11.1",
|
||||
"marked": "github:mattermost/marked#2ef7f28cc7718e3f551c4ce9ea75fdd7580c2008",
|
||||
"marked": "github:mattermost/marked#3b13ba8ddf725327ddf0298361d6d304a021f2d1",
|
||||
"memoize-one": "6.0.0",
|
||||
"moment-timezone": "0.5.38",
|
||||
"p-queue": "7.3.0",
|
||||
|
|
@ -20696,8 +20696,9 @@
|
|||
},
|
||||
"node_modules/marked": {
|
||||
"version": "0.3.6",
|
||||
"resolved": "git+ssh://git@github.com/mattermost/marked.git#2ef7f28cc7718e3f551c4ce9ea75fdd7580c2008",
|
||||
"integrity": "sha512-RekZq9qAxIO1cl9Pircqp3iBxsEFklkqw5NTiBzgrwaK1JXhy/YYCIDpy31N1dbP3x9Hisw+obJy/QLigDY+Hg==",
|
||||
"resolved": "git+ssh://git@github.com/mattermost/marked.git#3b13ba8ddf725327ddf0298361d6d304a021f2d1",
|
||||
"integrity": "sha512-/G1/szBhwdamaCQQjdk+eKQKw4Xkmk8aQYxEQvIjfbcFHEaIgUbpH6RBSC+b0pDzlhm7mxHAaGnzfH3WqUks1Q==",
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"marked": "bin/marked"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue