Koenig - Change ~strike~ text expansion to ~~strike~~

refs https://github.com/TryGhost/Ghost/issues/9505
This commit is contained in:
Kevin Ansfield 2018-04-12 12:40:15 +01:00
parent 801c73dae6
commit d54172172d

View File

@ -196,7 +196,7 @@ export default function (editor) {
function matchStrikethrough(editor, text) { function matchStrikethrough(editor, text) {
let {range} = editor; let {range} = editor;
let matches = text.match(/(?:^|\s)~([^\s~]+|[^\s~][^~]*[^\s])~/); let matches = text.match(/(?:^|\s)~~([^\s~]+|[^\s~][^~]*[^\s])~~/);
if (matches) { if (matches) {
let match = matches[0].trim(); let match = matches[0].trim();
range = range.extend(-(match.length)); range = range.extend(-(match.length));