mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-26 11:38:15 +08:00
942 B
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: Titlewidth: Container widthheight: Container heighttheme: Theme, options:darkandlightuser: Replit usernamerepl-name: Replit repl namefilepath: Default file path to open in Replit
Examples
Input:
@[replit](@TechPandaPro/Cursor-Hangout#package.json)
Output: