[MM-23180] Take full-width punctuation marks as boundary for hyperlinks (#30084)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0acadb7b93
Коммит
b7d95f5368
@@ -52,7 +52,7 @@
|
|||||||
"lodash": "4.17.21",
|
"lodash": "4.17.21",
|
||||||
"luxon": "3.3.0",
|
"luxon": "3.3.0",
|
||||||
"mark.js": "8.11.1",
|
"mark.js": "8.11.1",
|
||||||
"marked": "github:mattermost/marked#2ef7f28cc7718e3f551c4ce9ea75fdd7580c2008",
|
"marked": "github:mattermost/marked#3b13ba8ddf725327ddf0298361d6d304a021f2d1",
|
||||||
"memoize-one": "6.0.0",
|
"memoize-one": "6.0.0",
|
||||||
"moment-timezone": "0.5.38",
|
"moment-timezone": "0.5.38",
|
||||||
"p-queue": "7.3.0",
|
"p-queue": "7.3.0",
|
||||||
|
|||||||
@@ -283,6 +283,12 @@ describe('formatWithRenderer | LinkOnlyRenderer', () => {
|
|||||||
inputText: 'Let\'s try http://example/result?things={stuff}',
|
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>',
|
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();
|
const linkOnlyRenderer = new LinkOnlyRenderer();
|
||||||
|
|||||||
7
webapp/package-lock.json
сгенерированный
7
webapp/package-lock.json
сгенерированный
@@ -105,7 +105,7 @@
|
|||||||
"lodash": "4.17.21",
|
"lodash": "4.17.21",
|
||||||
"luxon": "3.3.0",
|
"luxon": "3.3.0",
|
||||||
"mark.js": "8.11.1",
|
"mark.js": "8.11.1",
|
||||||
"marked": "github:mattermost/marked#2ef7f28cc7718e3f551c4ce9ea75fdd7580c2008",
|
"marked": "github:mattermost/marked#3b13ba8ddf725327ddf0298361d6d304a021f2d1",
|
||||||
"memoize-one": "6.0.0",
|
"memoize-one": "6.0.0",
|
||||||
"moment-timezone": "0.5.38",
|
"moment-timezone": "0.5.38",
|
||||||
"p-queue": "7.3.0",
|
"p-queue": "7.3.0",
|
||||||
@@ -20696,8 +20696,9 @@
|
|||||||
},
|
},
|
||||||
"node_modules/marked": {
|
"node_modules/marked": {
|
||||||
"version": "0.3.6",
|
"version": "0.3.6",
|
||||||
"resolved": "git+ssh://git@github.com/mattermost/marked.git#2ef7f28cc7718e3f551c4ce9ea75fdd7580c2008",
|
"resolved": "git+ssh://git@github.com/mattermost/marked.git#3b13ba8ddf725327ddf0298361d6d304a021f2d1",
|
||||||
"integrity": "sha512-RekZq9qAxIO1cl9Pircqp3iBxsEFklkqw5NTiBzgrwaK1JXhy/YYCIDpy31N1dbP3x9Hisw+obJy/QLigDY+Hg==",
|
"integrity": "sha512-/G1/szBhwdamaCQQjdk+eKQKw4Xkmk8aQYxEQvIjfbcFHEaIgUbpH6RBSC+b0pDzlhm7mxHAaGnzfH3WqUks1Q==",
|
||||||
|
"license": "MIT",
|
||||||
"bin": {
|
"bin": {
|
||||||
"marked": "bin/marked"
|
"marked": "bin/marked"
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user