Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion playground/src/pages/repl.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
# REPL

```ts sandbox autorun lineNumbers=false tabs=false
With `autorun`

```ts sandbox autorun
import { mainnet } from 'viem/chains'
import { createPublicClient, http } from 'viem'

const client = createPublicClient({
chain: mainnet,
transport: http(),
})

const blockNumber = await client.getBlockNumber()
console.log(blockNumber)
```

Without `autorun`

```ts sandbox
import { mainnet } from 'viem/chains'
import { createPublicClient, http } from 'viem'

Expand Down
78 changes: 39 additions & 39 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
- twoslash-rust/npm/*

catalog:
'@biomejs/biome': ^2.3.10
'@biomejs/biome': ^2.3.11
'@changesets/cli': ^2.29.8
'@types/node': ^25.0.3
'@types/react': ^19.2.7
Expand Down
3 changes: 1 addition & 2 deletions src/internal/mdx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import * as yaml from 'yaml'
import type * as Config from './config.js'
import * as Icons from './icons.js'
import { remarkVocsScope } from './remark-vocs-scope.js'
import { remarkSandbox } from './sandbox.js'
import * as ShikiTransformers from './shiki-transformers.js'
import * as Snippets from './snippets.js'
import type { ExactPartial, UnionOmit } from './types.js'
Expand Down Expand Up @@ -195,7 +194,6 @@ export function getCompileOptions(
remarkGfm,
remarkMetaFrontmatter,
remarkMdxFrontmatter,
remarkSandbox,
remarkSteps,
remarkSubheading,
remarkVocsScope,
Expand Down Expand Up @@ -435,6 +433,7 @@ export function rehypeShiki(
...ShikiTransformers.notationFold(),
ShikiTransformers.removeNotationEscape(),
ShikiTransformers.shellPrompt(options.shellPrompt),
ShikiTransformers.sandbox(),
ShikiTransformers.tagLine(),
ShikiTransformers.title(),
...(options.transformers ?? []),
Expand Down
174 changes: 0 additions & 174 deletions src/internal/sandbox.ts

This file was deleted.

Loading
Loading