Skip to content

Commit ded0b33

Browse files
committed
#8 - Added monaco editor support
1 parent d6eb134 commit ded0b33

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [0.0.22] - 2024-11-08
44

55
- Added support for the `about-me` slide to position the image
6+
- Updated theme name to support Monaco Editor
67

78
## [0.0.21] - 2024-09-28
89

example.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,33 @@ function updateUser(id: number, update: Partial<User>) {
215215
}
216216
```
217217

218+
---
219+
220+
# Monaco Editor
221+
222+
```ts {monaco}
223+
interface User {
224+
id: number
225+
firstName: string
226+
lastName: string
227+
role: string
228+
}
229+
230+
function updateUser(id: number, update: Partial<User>) {
231+
const user = getUser(id)
232+
const newUser = { ...user, ...update }
233+
saveUser(id, newUser)
234+
}
235+
```
236+
237+
---
238+
239+
# Monaco Editor
240+
241+
```ts {monaco-run} {autorun:false}
242+
console.log('Click the play button to run me')
243+
```
244+
218245
---
219246
layout: center
220247
class: "text-center"

public/theme/theunnamed-dark-theme.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "vscode://schemas/color-theme",
3-
"name": "The unnamed",
3+
"name": "the-unnamed",
44
"type": "dark",
55
"colors": {
66
"foreground": "#F3EFF5",
@@ -156,8 +156,7 @@
156156
"terminal.ansiBrightCyan": "#15c2cb",
157157
"terminal.ansiBrightWhite": "#f3eff5"
158158
},
159-
"tokenColors": [
160-
{
159+
"tokenColors": [{
161160
"scope": [
162161
"meta.paragraph.markdown",
163162
"string.other.link.description.title.markdown"

0 commit comments

Comments
 (0)