small changes (#186574)

* bug fixes

* added label to copyPaste.ts

* added localized label to copyPasteLinks file
This commit is contained in:
Meghan Kulkarni
2023-06-28 17:14:23 -07:00
committed by GitHub
parent 7fc5c6aa9a
commit 715334ba8c
4 changed files with 7 additions and 7 deletions

View File

@@ -153,7 +153,7 @@ export function createUriListSnippet(
if (insertAsMedia) {
insertedImageCount++;
snippet.appendText('![');
const placeholderText = options?.placeholderText ? (escapeBrackets(title) || 'Alt text') : 'label';
const placeholderText = escapeBrackets(title) || options?.placeholderText || 'Alt text';
const placeholderIndex = typeof options?.placeholderStartIndex !== 'undefined' ? options?.placeholderStartIndex + i : (placeholderValue === 0 ? undefined : placeholderValue);
snippet.appendPlaceholder(placeholderText, placeholderIndex);
snippet.appendText(`](${escapeMarkdownLinkPath(mdPath)})`);