vditor 3.8.17 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/index.css +3 -1
- package/dist/index.min.js +1 -1
- package/dist/js/flowchart.js/flowchart.min.js +0 -1
- package/dist/js/i18n/ja_JP.js +13 -13
- package/dist/js/lute/lute.min.js +38 -21
- package/dist/js/markmap/katex.min.css +1 -0
- package/dist/js/markmap/markmap.min.js +8251 -0
- package/dist/js/markmap/prism.css +140 -0
- package/dist/js/mermaid/mermaid.min.js +2 -32
- package/dist/method.d.ts +2 -0
- package/dist/method.min.js +1 -1
- package/dist/ts/markdown/adapterRender.d.ts +4 -0
- package/dist/ts/markdown/markmapRender.d.ts +1 -0
- package/dist/ts/outline/index.d.ts +1 -1
- package/dist/types/index.d.ts +9 -1
- package/package.json +1 -1
- package/src/assets/less/_reset.less +2 -0
- package/src/method.ts +3 -0
- package/src/ts/constants.ts +1 -1
- package/src/ts/export/index.ts +3 -2
- package/src/ts/ir/index.ts +8 -4
- package/src/ts/markdown/adapterRender.ts +4 -0
- package/src/ts/markdown/codeRender.ts +4 -3
- package/src/ts/markdown/markmapRender.ts +57 -0
- package/src/ts/markdown/mermaidRender.ts +10 -88
- package/src/ts/markdown/previewRender.ts +2 -0
- package/src/ts/outline/index.ts +2 -4
- package/src/ts/preview/index.ts +16 -1
- package/src/ts/toolbar/EditMode.ts +1 -1
- package/src/ts/ui/initUI.ts +1 -1
- package/src/ts/util/Options.ts +8 -2
- package/src/ts/util/editorCommonEvent.ts +5 -1
- package/src/ts/util/fixBrowserBehavior.ts +4 -0
- package/src/ts/util/processCode.ts +3 -0
- package/src/ts/wysiwyg/index.ts +7 -1
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* prism.js default theme for JavaScript, CSS and HTML
|
|
3
|
+
* Based on dabblet (http://dabblet.com)
|
|
4
|
+
* @author Lea Verou
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
code[class*="language-"],
|
|
8
|
+
pre[class*="language-"] {
|
|
9
|
+
color: black;
|
|
10
|
+
background: none;
|
|
11
|
+
text-shadow: 0 1px white;
|
|
12
|
+
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
13
|
+
font-size: 1em;
|
|
14
|
+
text-align: left;
|
|
15
|
+
white-space: pre;
|
|
16
|
+
word-spacing: normal;
|
|
17
|
+
word-break: normal;
|
|
18
|
+
word-wrap: normal;
|
|
19
|
+
line-height: 1.5;
|
|
20
|
+
|
|
21
|
+
-moz-tab-size: 4;
|
|
22
|
+
-o-tab-size: 4;
|
|
23
|
+
tab-size: 4;
|
|
24
|
+
|
|
25
|
+
-webkit-hyphens: none;
|
|
26
|
+
-moz-hyphens: none;
|
|
27
|
+
-ms-hyphens: none;
|
|
28
|
+
hyphens: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
|
|
32
|
+
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
|
|
33
|
+
text-shadow: none;
|
|
34
|
+
background: #b3d4fc;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
|
|
38
|
+
code[class*="language-"]::selection, code[class*="language-"] ::selection {
|
|
39
|
+
text-shadow: none;
|
|
40
|
+
background: #b3d4fc;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media print {
|
|
44
|
+
code[class*="language-"],
|
|
45
|
+
pre[class*="language-"] {
|
|
46
|
+
text-shadow: none;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Code blocks */
|
|
51
|
+
pre[class*="language-"] {
|
|
52
|
+
padding: 1em;
|
|
53
|
+
margin: .5em 0;
|
|
54
|
+
overflow: auto;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:not(pre) > code[class*="language-"],
|
|
58
|
+
pre[class*="language-"] {
|
|
59
|
+
background: #f5f2f0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Inline code */
|
|
63
|
+
:not(pre) > code[class*="language-"] {
|
|
64
|
+
padding: .1em;
|
|
65
|
+
border-radius: .3em;
|
|
66
|
+
white-space: normal;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.token.comment,
|
|
70
|
+
.token.prolog,
|
|
71
|
+
.token.doctype,
|
|
72
|
+
.token.cdata {
|
|
73
|
+
color: slategray;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.token.punctuation {
|
|
77
|
+
color: #999;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.token.namespace {
|
|
81
|
+
opacity: .7;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.token.property,
|
|
85
|
+
.token.tag,
|
|
86
|
+
.token.boolean,
|
|
87
|
+
.token.number,
|
|
88
|
+
.token.constant,
|
|
89
|
+
.token.symbol,
|
|
90
|
+
.token.deleted {
|
|
91
|
+
color: #905;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.token.selector,
|
|
95
|
+
.token.attr-name,
|
|
96
|
+
.token.string,
|
|
97
|
+
.token.char,
|
|
98
|
+
.token.builtin,
|
|
99
|
+
.token.inserted {
|
|
100
|
+
color: #690;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.token.operator,
|
|
104
|
+
.token.entity,
|
|
105
|
+
.token.url,
|
|
106
|
+
.language-css .token.string,
|
|
107
|
+
.style .token.string {
|
|
108
|
+
color: #9a6e3a;
|
|
109
|
+
/* This background color was intended by the author of this theme. */
|
|
110
|
+
background: hsla(0, 0%, 100%, .5);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.token.atrule,
|
|
114
|
+
.token.attr-value,
|
|
115
|
+
.token.keyword {
|
|
116
|
+
color: #07a;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.token.function,
|
|
120
|
+
.token.class-name {
|
|
121
|
+
color: #DD4A68;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.token.regex,
|
|
125
|
+
.token.important,
|
|
126
|
+
.token.variable {
|
|
127
|
+
color: #e90;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.token.important,
|
|
131
|
+
.token.bold {
|
|
132
|
+
font-weight: bold;
|
|
133
|
+
}
|
|
134
|
+
.token.italic {
|
|
135
|
+
font-style: italic;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.token.entity {
|
|
139
|
+
cursor: help;
|
|
140
|
+
}
|