Skip to content

Commit 2feed5b

Browse files
Create codemirror.mdx
Co-Authored-By: Vai <46390109+vaisriv@users.noreply.github.com>
1 parent 2ae2796 commit 2feed5b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: "Codemirro"
3+
description: "..."
4+
---
5+
6+
import CiteDrive from '@components/CiteDrive.astro';
7+
8+
<CiteDrive />
9+
10+
```js
11+
import {EditorView, basicSetup} from "codemirror"
12+
import {bibtex} from "lang-bibtex"
13+
14+
const view = new EditorView({
15+
parent: document.body,
16+
doc: `fmt.Println("hello world")`,
17+
extensions: [basicSetup, bibtex()]
18+
})
19+
```

0 commit comments

Comments
 (0)