diff --git a/src/editor/operations.ts b/src/editor/operations.ts index 6812e5c9af5..c545b044dda 100644 --- a/src/editor/operations.ts +++ b/src/editor/operations.ts @@ -225,7 +225,7 @@ export function formatRangeAsLink(range: Range, text?: string) { replaceRangeAndAutoAdjustCaret(range, newParts, true, prefixLength, suffixLength); } else { // We set offset to -1 here so that the caret lands between the brackets - replaceRangeAndMoveCaret(range, [partCreator.plain("[" + range.text + "]" + "(" + (text ?? "") + ")")],-1); + replaceRangeAndMoveCaret(range, [partCreator.plain("[" + range.text + "]" + "(" + (text ?? "") + ")")], -1); } }