first commit

This commit is contained in:
Stefano Rossi 2025-07-12 17:25:18 +02:00
commit 7d4e05de19
Signed by: chadmin
GPG key ID: 9EFA2130646BC893
27 changed files with 7574 additions and 0 deletions

19
setup/code-runners.ts Normal file
View file

@ -0,0 +1,19 @@
import { defineCodeRunnersSetup } from '@slidev/types'
export default defineCodeRunnersSetup(() => {
return {
async python(code, ctx) {
// Somehow execute the code and return the result
const result = await executePythonCodeRemotely(code)
return {
text: result
}
},
html(code, ctx) {
return {
html: sanitizeHtml(code)
}
},
// or other languages, key is the language id
}
})

7
setup/mermai.ts Normal file
View file

@ -0,0 +1,7 @@
import { defineMermaidSetup } from '@slidev/types'
export default defineMermaidSetup(() => {
return {
theme: 'forest',
}
})