-
Notifications
You must be signed in to change notification settings - Fork 2
/
vscode-dark.html
37 lines (37 loc) · 1.26 KB
/
vscode-dark.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>vscode-dark Preview</title>
<link rel="stylesheet" href="./theme.css" />
<!-- <link rel="stylesheet" href="../editor/vscode-dark.css" /> -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/HerbertHe/vditor-theme@main/editor/vscode-dark.css"
/>
</head>
<body>
<div id="container"></div>
<script src="https://cdn.jsdelivr.net/npm/vditor/dist/index.min.js"></script>
<script>
new Vditor("container", {
height: 500,
outline: {
enable: true,
position: "right",
},
preview: {
theme: {
current: "vscode-dark",
path: "https://cdn.jsdelivr.net/gh/HerbertHe/vditor-theme@main/content-theme",
},
hljs: {
style: "solarized-dark256",
},
},
})
</script>
</body>
</html>