942 B

url
url
/en/guide/code/replit/index.md

~~The theme supports embedding Replit in Markdown files.~~

Configuration

This feature is disabled by default. You can enable it in the configuration file.

export default defineUserConfig({
  theme: plumeTheme({
    markdown: {
      replit: true, // [!code ++]
    },
  })
})

Syntax

Basic syntax:

@[replit](user/repl-name)

Extended options:

@[replit title="" width="100%" height="450px" theme="dark"](user/repl-name#filepath)
  • title: Title
  • width: Container width
  • height: Container height
  • theme: Theme, options: dark and light
  • user: Replit username
  • repl-name: Replit repl name
  • filepath: Default file path to open in Replit

Examples

Input:

@[replit](@TechPandaPro/Cursor-Hangout#package.json)

Output:

@replit