prefix metadata altText

This commit is contained in:
Aaron Munger
2023-05-22 09:39:48 -07:00
parent 24842542bf
commit d6db619ce7
2 changed files with 3 additions and 3 deletions

View File

@@ -70,8 +70,8 @@ const domEval = (container: Element) => {
function getAltText(outputInfo: OutputItem) {
const metadata = outputInfo.metadata;
if (typeof metadata === 'object' && metadata && 'altText' in metadata && typeof metadata.altText === 'string') {
return metadata.altText;
if (typeof metadata === 'object' && metadata && 'vscode_altText' in metadata && typeof metadata.vscode_altText === 'string') {
return metadata.vscode_altText;
}
return undefined;
}