@incremark/vue 0.1.0 → 0.2.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/dist/index.css +5 -356
- package/dist/index.css.map +1 -1
- package/dist/index.js +1181 -489
- package/dist/index.js.map +1 -1
- package/package.json +7 -5
- package/src/ThemeProvider.vue +41 -0
- package/src/components/Incremark.vue +53 -23
- package/src/components/IncremarkBlockquote.vue +0 -22
- package/src/components/IncremarkCode.vue +3 -161
- package/src/components/IncremarkDefault.vue +0 -27
- package/src/components/IncremarkFootnotes.vue +78 -0
- package/src/components/IncremarkHeading.vue +1 -17
- package/src/components/IncremarkHtmlElement.vue +138 -0
- package/src/components/IncremarkInline.vue +95 -56
- package/src/components/IncremarkList.vue +0 -37
- package/src/components/IncremarkMath.vue +0 -45
- package/src/components/IncremarkParagraph.vue +0 -7
- package/src/components/IncremarkRenderer.vue +15 -3
- package/src/components/IncremarkTable.vue +0 -32
- package/src/components/IncremarkThematicBreak.vue +0 -8
- package/src/components/index.ts +2 -0
- package/src/composables/useDefinationsContext.ts +16 -0
- package/src/composables/useIncremark.ts +47 -187
- package/src/composables/useProvideDefinations.ts +61 -0
- package/src/composables/useTypewriter.ts +205 -0
- package/src/index.ts +15 -0
- package/src/utils/cursor.ts +46 -0
package/dist/index.css
CHANGED
|
@@ -1,360 +1,9 @@
|
|
|
1
|
-
/* sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/
|
|
2
|
-
.incremark-
|
|
3
|
-
display: inline;
|
|
1
|
+
/* sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkHtmlElement.vue?type=style&index=0 */
|
|
2
|
+
.incremark-html-element[data-v-b3af0c5a] {
|
|
4
3
|
}
|
|
5
|
-
.incremark-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
overflow-x: auto;
|
|
9
|
-
text-align: center;
|
|
10
|
-
}
|
|
11
|
-
.math-source[data-v-6146c361] {
|
|
12
|
-
background: #f3f4f6;
|
|
13
|
-
padding: 0.1em 0.3em;
|
|
14
|
-
border-radius: 3px;
|
|
15
|
-
font-size: 0.9em;
|
|
16
|
-
color: #6b7280;
|
|
17
|
-
}
|
|
18
|
-
.math-source-block[data-v-6146c361] {
|
|
19
|
-
margin: 0;
|
|
20
|
-
padding: 1em;
|
|
21
|
-
background: #f3f4f6;
|
|
22
|
-
border-radius: 6px;
|
|
23
|
-
text-align: left;
|
|
24
|
-
}
|
|
25
|
-
.math-source-block code[data-v-6146c361] {
|
|
26
|
-
font-family: "Fira Code", monospace;
|
|
27
|
-
font-size: 0.9em;
|
|
28
|
-
color: #374151;
|
|
29
|
-
}
|
|
30
|
-
.math-rendered[data-v-6146c361] .katex {
|
|
31
|
-
font-size: 1.1em;
|
|
32
|
-
}
|
|
33
|
-
.math-rendered[data-v-6146c361] .katex-display {
|
|
34
|
-
margin: 0;
|
|
35
|
-
overflow-x: auto;
|
|
36
|
-
overflow-y: hidden;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/* sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkInline.vue?type=style&index=0 */
|
|
40
|
-
.incremark-inline-code {
|
|
41
|
-
padding: 0.2em 0.4em;
|
|
42
|
-
background: rgba(0, 0, 0, 0.06);
|
|
43
|
-
border-radius: 4px;
|
|
44
|
-
font-family:
|
|
45
|
-
"Fira Code",
|
|
46
|
-
"SF Mono",
|
|
47
|
-
Consolas,
|
|
48
|
-
monospace;
|
|
49
|
-
font-size: 0.9em;
|
|
50
|
-
}
|
|
51
|
-
.incremark-fade-in {
|
|
52
|
-
animation: incremark-fade-in 0.4s ease-out;
|
|
53
|
-
}
|
|
54
|
-
@keyframes incremark-fade-in {
|
|
55
|
-
from {
|
|
56
|
-
opacity: 0;
|
|
57
|
-
}
|
|
58
|
-
to {
|
|
59
|
-
opacity: 1;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/* sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkHeading.vue?type=style&index=0 */
|
|
64
|
-
.incremark-heading[data-v-56c8779f] {
|
|
65
|
-
margin: 0.5em 0;
|
|
66
|
-
font-weight: 600;
|
|
67
|
-
line-height: 1.3;
|
|
68
|
-
}
|
|
69
|
-
h1[data-v-56c8779f] {
|
|
70
|
-
font-size: 2em;
|
|
71
|
-
border-bottom: 1px solid #eee;
|
|
72
|
-
padding-bottom: 0.3em;
|
|
73
|
-
}
|
|
74
|
-
h2[data-v-56c8779f] {
|
|
75
|
-
font-size: 1.5em;
|
|
76
|
-
}
|
|
77
|
-
h3[data-v-56c8779f] {
|
|
78
|
-
font-size: 1.25em;
|
|
79
|
-
}
|
|
80
|
-
h4[data-v-56c8779f] {
|
|
81
|
-
font-size: 1em;
|
|
82
|
-
}
|
|
83
|
-
h5[data-v-56c8779f] {
|
|
84
|
-
font-size: 0.875em;
|
|
85
|
-
}
|
|
86
|
-
h6[data-v-56c8779f] {
|
|
87
|
-
font-size: 0.85em;
|
|
88
|
-
color: #666;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/* sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkParagraph.vue?type=style&index=0 */
|
|
92
|
-
.incremark-paragraph[data-v-6fa83031] {
|
|
93
|
-
margin: 0.75em 0;
|
|
94
|
-
line-height: 1.6;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/* sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkCode.vue?type=style&index=0 */
|
|
98
|
-
.incremark-mermaid[data-v-c48b1022] {
|
|
99
|
-
margin: 1em 0;
|
|
100
|
-
border-radius: 8px;
|
|
101
|
-
overflow: hidden;
|
|
102
|
-
background: #1a1a2e;
|
|
103
|
-
}
|
|
104
|
-
.mermaid-header[data-v-c48b1022] {
|
|
105
|
-
display: flex;
|
|
106
|
-
justify-content: space-between;
|
|
107
|
-
align-items: center;
|
|
108
|
-
padding: 8px 16px;
|
|
109
|
-
background: #16213e;
|
|
110
|
-
border-bottom: 1px solid #0f3460;
|
|
111
|
-
font-size: 12px;
|
|
112
|
-
}
|
|
113
|
-
.mermaid-actions[data-v-c48b1022] {
|
|
114
|
-
display: flex;
|
|
115
|
-
gap: 8px;
|
|
116
|
-
}
|
|
117
|
-
.view-toggle[data-v-c48b1022] {
|
|
118
|
-
padding: 4px 10px;
|
|
119
|
-
border: 1px solid #0f3460;
|
|
120
|
-
border-radius: 6px;
|
|
121
|
-
background: transparent;
|
|
122
|
-
color: #8b949e;
|
|
123
|
-
font-size: 12px;
|
|
124
|
-
cursor: pointer;
|
|
125
|
-
transition: all 0.2s;
|
|
126
|
-
}
|
|
127
|
-
.view-toggle[data-v-c48b1022]:hover:not(:disabled) {
|
|
128
|
-
background: #0f3460;
|
|
129
|
-
color: #e0e0e0;
|
|
130
|
-
}
|
|
131
|
-
.view-toggle[data-v-c48b1022]:disabled {
|
|
132
|
-
opacity: 0.5;
|
|
133
|
-
cursor: not-allowed;
|
|
134
|
-
}
|
|
135
|
-
.mermaid-content[data-v-c48b1022] {
|
|
136
|
-
padding: 16px;
|
|
137
|
-
min-height: 100px;
|
|
138
|
-
}
|
|
139
|
-
.mermaid-loading[data-v-c48b1022] {
|
|
140
|
-
color: #8b949e;
|
|
141
|
-
font-size: 14px;
|
|
142
|
-
}
|
|
143
|
-
.mermaid-source-code[data-v-c48b1022] {
|
|
144
|
-
margin: 0;
|
|
145
|
-
padding: 12px;
|
|
146
|
-
background: #0d1117;
|
|
147
|
-
border-radius: 6px;
|
|
148
|
-
color: #c9d1d9;
|
|
149
|
-
font-family:
|
|
150
|
-
"Fira Code",
|
|
151
|
-
"SF Mono",
|
|
152
|
-
monospace;
|
|
153
|
-
font-size: 13px;
|
|
154
|
-
line-height: 1.5;
|
|
155
|
-
white-space: pre-wrap;
|
|
156
|
-
overflow-x: auto;
|
|
157
|
-
}
|
|
158
|
-
.mermaid-svg[data-v-c48b1022] {
|
|
159
|
-
overflow-x: auto;
|
|
160
|
-
}
|
|
161
|
-
.mermaid-svg[data-v-c48b1022] svg {
|
|
162
|
-
max-width: 100%;
|
|
163
|
-
height: auto;
|
|
164
|
-
}
|
|
165
|
-
.incremark-code[data-v-c48b1022] {
|
|
166
|
-
margin: 1em 0;
|
|
167
|
-
border-radius: 8px;
|
|
168
|
-
overflow: hidden;
|
|
169
|
-
background: #24292e;
|
|
170
|
-
}
|
|
171
|
-
.code-header[data-v-c48b1022] {
|
|
172
|
-
display: flex;
|
|
173
|
-
justify-content: space-between;
|
|
174
|
-
align-items: center;
|
|
175
|
-
padding: 8px 16px;
|
|
176
|
-
background: #1f2428;
|
|
177
|
-
border-bottom: 1px solid #30363d;
|
|
178
|
-
font-size: 12px;
|
|
179
|
-
}
|
|
180
|
-
.language[data-v-c48b1022] {
|
|
181
|
-
color: #8b949e;
|
|
182
|
-
text-transform: uppercase;
|
|
183
|
-
font-weight: 500;
|
|
184
|
-
letter-spacing: 0.5px;
|
|
185
|
-
}
|
|
186
|
-
.copy-btn[data-v-c48b1022] {
|
|
187
|
-
padding: 4px 12px;
|
|
188
|
-
border: 1px solid #30363d;
|
|
189
|
-
border-radius: 6px;
|
|
190
|
-
background: transparent;
|
|
191
|
-
color: #8b949e;
|
|
192
|
-
font-size: 12px;
|
|
193
|
-
cursor: pointer;
|
|
194
|
-
transition: all 0.2s;
|
|
195
|
-
}
|
|
196
|
-
.copy-btn[data-v-c48b1022]:hover {
|
|
197
|
-
background: #30363d;
|
|
198
|
-
color: #c9d1d9;
|
|
199
|
-
}
|
|
200
|
-
.code-content[data-v-c48b1022] {
|
|
201
|
-
overflow-x: auto;
|
|
202
|
-
}
|
|
203
|
-
.code-loading[data-v-c48b1022] {
|
|
204
|
-
opacity: 0.7;
|
|
205
|
-
}
|
|
206
|
-
.shiki-wrapper[data-v-c48b1022] pre {
|
|
207
|
-
margin: 0;
|
|
208
|
-
padding: 16px;
|
|
209
|
-
background: transparent !important;
|
|
210
|
-
overflow-x: auto;
|
|
211
|
-
}
|
|
212
|
-
.shiki-wrapper[data-v-c48b1022] code {
|
|
213
|
-
font-family:
|
|
214
|
-
"Fira Code",
|
|
215
|
-
"SF Mono",
|
|
216
|
-
"Monaco",
|
|
217
|
-
"Consolas",
|
|
218
|
-
monospace;
|
|
219
|
-
font-size: 14px;
|
|
220
|
-
line-height: 1.6;
|
|
221
|
-
}
|
|
222
|
-
.code-fallback[data-v-c48b1022],
|
|
223
|
-
.code-loading pre[data-v-c48b1022] {
|
|
224
|
-
margin: 0;
|
|
225
|
-
padding: 16px;
|
|
226
|
-
overflow-x: auto;
|
|
227
|
-
background: transparent;
|
|
228
|
-
}
|
|
229
|
-
.code-fallback code[data-v-c48b1022],
|
|
230
|
-
.code-loading code[data-v-c48b1022] {
|
|
231
|
-
font-family:
|
|
232
|
-
"Fira Code",
|
|
233
|
-
"SF Mono",
|
|
234
|
-
"Monaco",
|
|
235
|
-
"Consolas",
|
|
236
|
-
monospace;
|
|
237
|
-
font-size: 14px;
|
|
238
|
-
line-height: 1.6;
|
|
239
|
-
color: #c9d1d9;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/* sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkList.vue?type=style&index=0 */
|
|
243
|
-
.incremark-list[data-v-0778ccea] {
|
|
244
|
-
margin: 0.75em 0;
|
|
245
|
-
padding-left: 2em;
|
|
246
|
-
}
|
|
247
|
-
.incremark-list.task-list[data-v-0778ccea] {
|
|
248
|
-
list-style: none;
|
|
249
|
-
padding-left: 0;
|
|
250
|
-
}
|
|
251
|
-
.incremark-list-item[data-v-0778ccea] {
|
|
252
|
-
margin: 0.25em 0;
|
|
253
|
-
line-height: 1.6;
|
|
254
|
-
}
|
|
255
|
-
.task-item[data-v-0778ccea] {
|
|
256
|
-
list-style: none;
|
|
257
|
-
}
|
|
258
|
-
.task-label[data-v-0778ccea] {
|
|
259
|
-
display: flex;
|
|
260
|
-
align-items: flex-start;
|
|
261
|
-
gap: 0.5em;
|
|
262
|
-
cursor: default;
|
|
263
|
-
}
|
|
264
|
-
.checkbox[data-v-0778ccea] {
|
|
265
|
-
margin-top: 0.3em;
|
|
266
|
-
flex-shrink: 0;
|
|
267
|
-
}
|
|
268
|
-
.task-content[data-v-0778ccea] {
|
|
269
|
-
flex: 1;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/* sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkTable.vue?type=style&index=0 */
|
|
273
|
-
.incremark-table-wrapper[data-v-7aea7ba6] {
|
|
274
|
-
overflow-x: auto;
|
|
275
|
-
margin: 1em 0;
|
|
276
|
-
}
|
|
277
|
-
.incremark-table[data-v-7aea7ba6] {
|
|
278
|
-
width: 100%;
|
|
279
|
-
border-collapse: collapse;
|
|
280
|
-
font-size: 14px;
|
|
281
|
-
}
|
|
282
|
-
.incremark-table th[data-v-7aea7ba6],
|
|
283
|
-
.incremark-table td[data-v-7aea7ba6] {
|
|
284
|
-
border: 1px solid #ddd;
|
|
285
|
-
padding: 10px 14px;
|
|
286
|
-
}
|
|
287
|
-
.incremark-table th[data-v-7aea7ba6] {
|
|
288
|
-
background: #f8f9fa;
|
|
289
|
-
font-weight: 600;
|
|
290
|
-
}
|
|
291
|
-
.incremark-table tr[data-v-7aea7ba6]:nth-child(even) {
|
|
292
|
-
background: #fafafa;
|
|
293
|
-
}
|
|
294
|
-
.incremark-table tr[data-v-7aea7ba6]:hover {
|
|
295
|
-
background: #f0f0f0;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/* sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkBlockquote.vue?type=style&index=0 */
|
|
299
|
-
.incremark-blockquote[data-v-67363f13] {
|
|
300
|
-
margin: 1em 0;
|
|
301
|
-
padding: 0.5em 1em;
|
|
302
|
-
border-left: 4px solid #3b82f6;
|
|
303
|
-
background: #f0f7ff;
|
|
304
|
-
border-radius: 0 4px 4px 0;
|
|
305
|
-
}
|
|
306
|
-
.incremark-blockquote[data-v-67363f13] p {
|
|
307
|
-
margin: 0.5em 0;
|
|
308
|
-
}
|
|
309
|
-
.incremark-blockquote[data-v-67363f13] p:first-child {
|
|
310
|
-
margin-top: 0;
|
|
311
|
-
}
|
|
312
|
-
.incremark-blockquote[data-v-67363f13] p:last-child {
|
|
313
|
-
margin-bottom: 0;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/* sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkThematicBreak.vue?type=style&index=0 */
|
|
317
|
-
.incremark-hr[data-v-cb316429] {
|
|
318
|
-
margin: 2em 0;
|
|
319
|
-
border: none;
|
|
320
|
-
border-top: 2px solid #e5e5e5;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/* sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkDefault.vue?type=style&index=0 */
|
|
324
|
-
.incremark-default[data-v-5542d517] {
|
|
325
|
-
margin: 0.5em 0;
|
|
326
|
-
padding: 10px;
|
|
327
|
-
background: #fff3cd;
|
|
328
|
-
border: 1px solid #ffc107;
|
|
329
|
-
border-radius: 4px;
|
|
330
|
-
font-size: 12px;
|
|
331
|
-
}
|
|
332
|
-
.type-badge[data-v-5542d517] {
|
|
333
|
-
display: inline-block;
|
|
334
|
-
padding: 2px 8px;
|
|
335
|
-
background: #ffc107;
|
|
336
|
-
border-radius: 4px;
|
|
337
|
-
font-weight: 600;
|
|
338
|
-
margin-bottom: 8px;
|
|
339
|
-
}
|
|
340
|
-
pre[data-v-5542d517] {
|
|
341
|
-
margin: 0;
|
|
342
|
-
white-space: pre-wrap;
|
|
343
|
-
word-break: break-all;
|
|
344
|
-
font-size: 11px;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
/* sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/Incremark.vue?type=style&index=0 */
|
|
348
|
-
.incremark-block.incremark-show-status.incremark-pending[data-v-5966b843] {
|
|
349
|
-
border-left: 3px solid #a855f7;
|
|
350
|
-
padding-left: 12px;
|
|
351
|
-
opacity: 0.8;
|
|
352
|
-
}
|
|
353
|
-
.incremark-fade-enter-active[data-v-5966b843] {
|
|
354
|
-
transition: opacity 0.2s ease-out;
|
|
355
|
-
}
|
|
356
|
-
.incremark-fade-enter-from[data-v-5966b843] {
|
|
357
|
-
opacity: 0;
|
|
4
|
+
.incremark-unknown-child[data-v-b3af0c5a] {
|
|
5
|
+
color: #999;
|
|
6
|
+
font-style: italic;
|
|
358
7
|
}
|
|
359
8
|
|
|
360
9
|
/* sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/AutoScrollContainer.vue?type=style&index=0 */
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkMath.vue?type=style&index=0","sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkInline.vue?type=style&index=0","sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkHeading.vue?type=style&index=0","sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkParagraph.vue?type=style&index=0","sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkCode.vue?type=style&index=0","sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkList.vue?type=style&index=0","sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkTable.vue?type=style&index=0","sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkBlockquote.vue?type=style&index=0","sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkThematicBreak.vue?type=style&index=0","sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkDefault.vue?type=style&index=0","sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/Incremark.vue?type=style&index=0","sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/AutoScrollContainer.vue?type=style&index=0"],"sourcesContent":["\n.incremark-math-inline[data-v-6146c361] {\n display: inline;\n}\n.incremark-math-block[data-v-6146c361] {\n margin: 1em 0;\n padding: 1em;\n overflow-x: auto;\n text-align: center;\n}\n.math-source[data-v-6146c361] {\n background: #f3f4f6;\n padding: 0.1em 0.3em;\n border-radius: 3px;\n font-size: 0.9em;\n color: #6b7280;\n}\n.math-source-block[data-v-6146c361] {\n margin: 0;\n padding: 1em;\n background: #f3f4f6;\n border-radius: 6px;\n text-align: left;\n}\n.math-source-block code[data-v-6146c361] {\n font-family: 'Fira Code', monospace;\n font-size: 0.9em;\n color: #374151;\n}\n.math-rendered[data-v-6146c361] .katex {\n font-size: 1.1em;\n}\n.math-rendered[data-v-6146c361] .katex-display {\n margin: 0;\n overflow-x: auto;\n overflow-y: hidden;\n}\n","\n.incremark-inline-code {\n padding: 0.2em 0.4em;\n background: rgba(0, 0, 0, 0.06);\n border-radius: 4px;\n font-family: 'Fira Code', 'SF Mono', Consolas, monospace;\n font-size: 0.9em;\n}\n\n/* 渐入动画 */\n.incremark-fade-in {\n animation: incremark-fade-in 0.4s ease-out;\n}\n@keyframes incremark-fade-in {\nfrom { \n opacity: 0;\n}\nto { \n opacity: 1;\n}\n}\n","\n.incremark-heading[data-v-56c8779f] {\n margin: 0.5em 0;\n font-weight: 600;\n line-height: 1.3;\n}\nh1[data-v-56c8779f] { font-size: 2em; border-bottom: 1px solid #eee; padding-bottom: 0.3em;\n}\nh2[data-v-56c8779f] { font-size: 1.5em;\n}\nh3[data-v-56c8779f] { font-size: 1.25em;\n}\nh4[data-v-56c8779f] { font-size: 1em;\n}\nh5[data-v-56c8779f] { font-size: 0.875em;\n}\nh6[data-v-56c8779f] { font-size: 0.85em; color: #666;\n}\n","\n.incremark-paragraph[data-v-6fa83031] {\n margin: 0.75em 0;\n line-height: 1.6;\n}\n","\n/* Mermaid 样式 */\n.incremark-mermaid[data-v-c48b1022] {\n margin: 1em 0;\n border-radius: 8px;\n overflow: hidden;\n background: #1a1a2e;\n}\n.mermaid-header[data-v-c48b1022] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 16px;\n background: #16213e;\n border-bottom: 1px solid #0f3460;\n font-size: 12px;\n}\n.mermaid-actions[data-v-c48b1022] {\n display: flex;\n gap: 8px;\n}\n.view-toggle[data-v-c48b1022] {\n padding: 4px 10px;\n border: 1px solid #0f3460;\n border-radius: 6px;\n background: transparent;\n color: #8b949e;\n font-size: 12px;\n cursor: pointer;\n transition: all 0.2s;\n}\n.view-toggle[data-v-c48b1022]:hover:not(:disabled) {\n background: #0f3460;\n color: #e0e0e0;\n}\n.view-toggle[data-v-c48b1022]:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.mermaid-content[data-v-c48b1022] {\n padding: 16px;\n min-height: 100px;\n}\n.mermaid-loading[data-v-c48b1022] {\n color: #8b949e;\n font-size: 14px;\n}\n.mermaid-source-code[data-v-c48b1022] {\n margin: 0;\n padding: 12px;\n background: #0d1117;\n border-radius: 6px;\n color: #c9d1d9;\n font-family: 'Fira Code', 'SF Mono', monospace;\n font-size: 13px;\n line-height: 1.5;\n white-space: pre-wrap;\n overflow-x: auto;\n}\n.mermaid-svg[data-v-c48b1022] {\n overflow-x: auto;\n}\n.mermaid-svg[data-v-c48b1022] svg {\n max-width: 100%;\n height: auto;\n}\n\n/* 代码块样式 */\n.incremark-code[data-v-c48b1022] {\n margin: 1em 0;\n border-radius: 8px;\n overflow: hidden;\n background: #24292e;\n}\n.code-header[data-v-c48b1022] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 16px;\n background: #1f2428;\n border-bottom: 1px solid #30363d;\n font-size: 12px;\n}\n.language[data-v-c48b1022] {\n color: #8b949e;\n text-transform: uppercase;\n font-weight: 500;\n letter-spacing: 0.5px;\n}\n.copy-btn[data-v-c48b1022] {\n padding: 4px 12px;\n border: 1px solid #30363d;\n border-radius: 6px;\n background: transparent;\n color: #8b949e;\n font-size: 12px;\n cursor: pointer;\n transition: all 0.2s;\n}\n.copy-btn[data-v-c48b1022]:hover {\n background: #30363d;\n color: #c9d1d9;\n}\n.code-content[data-v-c48b1022] {\n overflow-x: auto;\n}\n.code-loading[data-v-c48b1022] {\n opacity: 0.7;\n}\n\n/* Shiki 生成的代码样式 */\n.shiki-wrapper[data-v-c48b1022] pre {\n margin: 0;\n padding: 16px;\n background: transparent !important;\n overflow-x: auto;\n}\n.shiki-wrapper[data-v-c48b1022] code {\n font-family: 'Fira Code', 'SF Mono', 'Monaco', 'Consolas', monospace;\n font-size: 14px;\n line-height: 1.6;\n}\n\n/* 回退样式 */\n.code-fallback[data-v-c48b1022],\n.code-loading pre[data-v-c48b1022] {\n margin: 0;\n padding: 16px;\n overflow-x: auto;\n background: transparent;\n}\n.code-fallback code[data-v-c48b1022],\n.code-loading code[data-v-c48b1022] {\n font-family: 'Fira Code', 'SF Mono', 'Monaco', 'Consolas', monospace;\n font-size: 14px;\n line-height: 1.6;\n color: #c9d1d9;\n}\n","\n.incremark-list[data-v-0778ccea] {\n margin: 0.75em 0;\n padding-left: 2em;\n}\n.incremark-list.task-list[data-v-0778ccea] {\n list-style: none;\n padding-left: 0;\n}\n.incremark-list-item[data-v-0778ccea] {\n margin: 0.25em 0;\n line-height: 1.6;\n}\n.task-item[data-v-0778ccea] {\n list-style: none;\n}\n.task-label[data-v-0778ccea] {\n display: flex;\n align-items: flex-start;\n gap: 0.5em;\n cursor: default;\n}\n.checkbox[data-v-0778ccea] {\n margin-top: 0.3em;\n flex-shrink: 0;\n}\n.task-content[data-v-0778ccea] {\n flex: 1;\n}\n","\n.incremark-table-wrapper[data-v-7aea7ba6] {\n overflow-x: auto;\n margin: 1em 0;\n}\n.incremark-table[data-v-7aea7ba6] {\n width: 100%;\n border-collapse: collapse;\n font-size: 14px;\n}\n.incremark-table th[data-v-7aea7ba6],\n.incremark-table td[data-v-7aea7ba6] {\n border: 1px solid #ddd;\n padding: 10px 14px;\n}\n.incremark-table th[data-v-7aea7ba6] {\n background: #f8f9fa;\n font-weight: 600;\n}\n.incremark-table tr[data-v-7aea7ba6]:nth-child(even) {\n background: #fafafa;\n}\n.incremark-table tr[data-v-7aea7ba6]:hover {\n background: #f0f0f0;\n}\n","\n.incremark-blockquote[data-v-67363f13] {\n margin: 1em 0;\n padding: 0.5em 1em;\n border-left: 4px solid #3b82f6;\n background: #f0f7ff;\n border-radius: 0 4px 4px 0;\n}\n.incremark-blockquote[data-v-67363f13] p {\n margin: 0.5em 0;\n}\n.incremark-blockquote[data-v-67363f13] p:first-child {\n margin-top: 0;\n}\n.incremark-blockquote[data-v-67363f13] p:last-child {\n margin-bottom: 0;\n}\n","\n.incremark-hr[data-v-cb316429] {\n margin: 2em 0;\n border: none;\n border-top: 2px solid #e5e5e5;\n}\n","\n.incremark-default[data-v-5542d517] {\n margin: 0.5em 0;\n padding: 10px;\n background: #fff3cd;\n border: 1px solid #ffc107;\n border-radius: 4px;\n font-size: 12px;\n}\n.type-badge[data-v-5542d517] {\n display: inline-block;\n padding: 2px 8px;\n background: #ffc107;\n border-radius: 4px;\n font-weight: 600;\n margin-bottom: 8px;\n}\npre[data-v-5542d517] {\n margin: 0;\n white-space: pre-wrap;\n word-break: break-all;\n font-size: 11px;\n}\n","\n.incremark-block.incremark-show-status.incremark-pending[data-v-5966b843] {\n border-left: 3px solid #a855f7;\n padding-left: 12px;\n opacity: 0.8;\n}\n.incremark-fade-enter-active[data-v-5966b843] {\n transition: opacity 0.2s ease-out;\n}\n.incremark-fade-enter-from[data-v-5966b843] {\n opacity: 0;\n}\n","\n.auto-scroll-container[data-v-e0d180b8] {\n overflow-y: auto;\n height: 100%;\n}\n"],"mappings":";AACA,CAAC,qBAAqB,CAAC;AACrB,WAAS;AACX;AACA,CAAC,oBAAoB,CAAC;AACpB,UAAQ,IAAI;AACZ,WAAS;AACT,cAAY;AACZ,cAAY;AACd;AACA,CAAC,WAA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":3,"sources":["sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/IncremarkHtmlElement.vue?type=style&index=0","sfc-style:/Users/yishuai/develop/ai/markdown/packages/vue/src/components/AutoScrollContainer.vue?type=style&index=0"],"sourcesContent":["\n.incremark-html-element[data-v-b3af0c5a] {\n /* 保持原有样式 */\n}\n.incremark-unknown-child[data-v-b3af0c5a] {\n color: #999;\n font-style: italic;\n}\n","\n.auto-scroll-container[data-v-e0d180b8] {\n overflow-y: auto;\n height: 100%;\n}\n"],"mappings":";AACA,CAAC,sBAAsB,CAAC;AAExB;AACA,CAAC,uBAAuB,CAAC;AACvB,SAAO;AACP,cAAY;AACd;;;ACNA,CAAC,qBAAqB,CAAC;AACrB,cAAY;AACZ,UAAQ;AACV;","names":[]}
|