repro.md
````md
```ts twoslash
// ---cut---
const hi = "Hi" as const;
```
````
repro.mdx
````md
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
```ts twoslash
// ---cut---
const hi = "Hi" as const;
```
````
I would expect the TypeScript code to be highlighted the same way in both files. Instead, I see this:
Can you also reproduce this behavior, or is it just something with my local setup? 😅 Would you expect the twoslahs plug to work for both MD and MDX files?
Given the mdx vscode extension and the Twoslash VS code extension are both installed, these two files, and a docusaurus 2.0 setup with
mdx
:repro.md
````md ```ts twoslash // ---cut--- const hi = "Hi" as const; ``` ````repro.mdx
````md import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem";I would expect the TypeScript code to be highlighted the same way in both files. Instead, I see this:
Can you also reproduce this behavior, or is it just something with my local setup? 😅 Would you expect the twoslahs plug to work for both MD and MDX files?