diff --git a/src/utils/previewer.test.ts b/src/utils/previewer.test.ts
index fe2b06ea..0689980d 100644
--- a/src/utils/previewer.test.ts
+++ b/src/utils/previewer.test.ts
@@ -99,7 +99,7 @@ describe('typescript.previewer', () => {
text: 'code();',
},
], noopToResource),
- ).toBe('*@example* \n```\ncode();\n```',
+ ).toBe('*@example* \n```typescript\ncode();\n```',
);
});
@@ -123,7 +123,7 @@ describe('typescript.previewer', () => {
text: '
Not code\ncode();',
},
], noopToResource),
- ).toBe('*@example* \nNot code\n```\ncode();\n```',
+ ).toBe('*@example* \nNot code\n```typescript\ncode();\n```',
);
});
diff --git a/src/utils/previewer.ts b/src/utils/previewer.ts
index dd32ef2e..f86bbbdb 100644
--- a/src/utils/previewer.ts
+++ b/src/utils/previewer.ts
@@ -52,7 +52,7 @@ function getTagBodyText(
if (/^\s*[~`]{3}/m.test(text)) {
return text;
}
- return '```\n' + text + '\n```';
+ return '```typescript\n' + text + '\n```';
}
const text = convertLinkTags(tag.text, filePathConverter);