first commit
This commit is contained in:
commit
7d4e05de19
27 changed files with 7574 additions and 0 deletions
19
setup/code-runners.ts
Normal file
19
setup/code-runners.ts
Normal 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
7
setup/mermai.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { defineMermaidSetup } from '@slidev/types'
|
||||
|
||||
export default defineMermaidSetup(() => {
|
||||
return {
|
||||
theme: 'forest',
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue