@xcan-cloud/markdown 1.0.3 → 1.0.4
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-DgJzUFhO.cjs → index-3IHguXNV.cjs} +1 -1
- package/dist/{index-svt2B0mU.cjs → index-B1J2nNpM.cjs} +1 -1
- package/dist/{index-gomLj7Pa.cjs → index-B4IGeZBE.cjs} +1 -1
- package/dist/{index-Cp1Js3UB.js → index-B6GxYMoT.js} +1 -1
- package/dist/{index-DElVYCAV.cjs → index-B7Xj21ga.cjs} +1 -1
- package/dist/{index-DxrodrNz.cjs → index-BBqsIlX7.cjs} +1 -1
- package/dist/{index-BGS8XpK3.cjs → index-BQdRlvS7.cjs} +1 -1
- package/dist/{index-D2ibyWM8.cjs → index-BVI1FBPW.cjs} +1 -1
- package/dist/{index-CZ7QBSCF.js → index-Bf12Z3js.js} +1 -1
- package/dist/{index-WjQV1yjo.cjs → index-BjR-sYQV.cjs} +1 -1
- package/dist/{index-B2puE7Hw.js → index-Bk_RD5SM.js} +1 -1
- package/dist/{index-Njgs-TRM.cjs → index-ByeQUzeV.cjs} +1 -1
- package/dist/{index-BXru8-QI.js → index-CBENkBIw.js} +1 -1
- package/dist/{index--J1mZOv6.cjs → index-CNJMw03h.cjs} +1 -1
- package/dist/{index-DeUR7cIb.js → index-CNUCRxVw.js} +1 -1
- package/dist/{index-Bx04875h.js → index-CNrmNDJb.js} +1 -1
- package/dist/{index-Ds5dLOfO.cjs → index-Cblg2U2_.cjs} +1 -1
- package/dist/{index-D9gMp3vS.js → index-Cj-Xzn5A.js} +1 -1
- package/dist/{index-CLMlwLsZ.cjs → index-CqXL17kO.cjs} +1 -1
- package/dist/{index-D5DbXPVV.cjs → index-D60Lv4Oo.cjs} +1 -1
- package/dist/{index-CNVYJm2K.js → index-D9G4wJSx.js} +1 -1
- package/dist/{index-BhuhaXHm.js → index-DwONd5rr.js} +1 -1
- package/dist/{index-wwsiyOCC.cjs → index-Es64S3Ag.cjs} +1 -1
- package/dist/{index-KDcnmY_P.js → index-HcWYO0RX.js} +1 -1
- package/dist/{index-CZsHchmF.js → index-N_mxtTQF.js} +1 -1
- package/dist/{index-U0iS5-g_.js → index-QdzXxJOb.js} +1 -1
- package/dist/{index-C5Ri_0AX.js → index-UjkeE9LM.js} +1 -1
- package/dist/{index-NcIp2AXa.cjs → index-Ya6GDKKk.cjs} +1 -1
- package/dist/{index-CLTQC4Ws.js → index-fbwey2ji.js} +1 -1
- package/dist/{index-Skqlu5FA.cjs → index-iTikLMQC.cjs} +1 -1
- package/dist/{index-DhciuuM3.js → index-jA2-yZjt.js} +1 -1
- package/dist/{index-D-LiE0Sn.js → index-m4nx9WDf.js} +1 -1
- package/dist/{index-yuc3MS9r.cjs → index-nlrwNtjC.cjs} +1 -1
- package/dist/{index-d0Fk7AGW.js → index-t3xwtRw_.js} +211 -211
- package/dist/{index-CDtkCBJ_.cjs → index-xBG42cso.cjs} +10 -10
- package/dist/{index-BsJRUjqg.js → index-yhzGNRR9.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/styles/markdown-editor.css +13 -4
- package/dist/styles/markdown-renderer.css +32 -11
- package/dist/styles/themes/github.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as o, E as a, s as Z, t as Q, a as _, L as q, i as l, c as r, f as w, l as V } from "./index-
|
|
1
|
+
import { e as o, E as a, s as Z, t as Q, a as _, L as q, i as l, c as r, f as w, l as V } from "./index-t3xwtRw_.js";
|
|
2
2
|
const R = 1, g = 2, b = 3, y = 4, T = 5, s = 98, c = 101, v = 102, t = 114, p = 69, X = 48, W = 46, d = 43, f = 45, Y = 35, z = 34, x = 124, U = 60, h = 62;
|
|
3
3
|
function n(O) {
|
|
4
4
|
return O >= 48 && O <= 57;
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-xBG42cso.cjs");exports.LocaleSwitcher=e.LocaleSwitcher;exports.MarkdownEditor=e.MarkdownEditor;exports.MarkdownProvider=e.MarkdownProvider;exports.MarkdownRenderer=e.MarkdownRenderer;exports.MarkdownViewer=e.MarkdownViewer;exports.MarkdownWorkerRenderer=e.MarkdownWorkerRenderer;exports.RenderCache=e.RenderCache;exports.ThemeSwitcher=e.ThemeSwitcher;exports.ToolbarIcon=e.ToolbarIcon;exports.copyToClipboard=e.copyToClipboard;exports.createProcessor=e.createProcessor;exports.escapeHtml=e.escapeHtml;exports.extractToc=e.extractToc;exports.getLocale=e.getLocale;exports.getMessages=e.getMessages;exports.initMermaid=e.initMermaid;exports.parseToAst=e.parseToAst;exports.processExternalLinks=e.processExternalLinks;exports.rehypeA11y=e.rehypeA11y;exports.rehypeHighlightCode=e.rehypeHighlightCode;exports.remarkAlert=e.remarkAlert;exports.remarkContainer=e.remarkContainer;exports.remarkToc=e.remarkToc;exports.renderMarkdown=e.renderMarkdown;exports.renderMarkdownSync=e.renderMarkdownSync;exports.renderMermaidDiagram=e.renderMermaidDiagram;exports.resetSlugger=e.resetSlugger;exports.sanitizeUrl=e.sanitizeUrl;exports.setLocale=e.setLocale;exports.slug=e.slug;exports.splitHtmlBlocks=e.splitHtmlBlocks;exports.t=e.t;exports.useDebouncedValue=e.useDebouncedValue;exports.useLocale=e.useLocale;exports.useMarkdown=e.useMarkdown;exports.useScrollSync=e.useScrollSync;exports.useTheme=e.useTheme;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as s, M as r, x as o, y as n, z as t, A as c, R as d, T as l, B as i, D as k, F as w, G as M, H as m, J as g, K as h, O as p, P as u, Q as T, S as y, U as S, V as L, W as x, X as A, Y as C, Z as H, _ as R, $ as b, a0 as D, a1 as P, a2 as V, a3 as z, a4 as B, a5 as E, a6 as U, a7 as W, a8 as f, a9 as v } from "./index-
|
|
1
|
+
import { w as s, M as r, x as o, y as n, z as t, A as c, R as d, T as l, B as i, D as k, F as w, G as M, H as m, J as g, K as h, O as p, P as u, Q as T, S as y, U as S, V as L, W as x, X as A, Y as C, Z as H, _ as R, $ as b, a0 as D, a1 as P, a2 as V, a3 as z, a4 as B, a5 as E, a6 as U, a7 as W, a8 as f, a9 as v } from "./index-t3xwtRw_.js";
|
|
2
2
|
export {
|
|
3
3
|
s as LocaleSwitcher,
|
|
4
4
|
r as MarkdownEditor,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/* ============================================================
|
|
2
2
|
Markdown Editor 样式
|
|
3
|
-
============================================================ */
|
|
4
3
|
|
|
4
|
+
编辑器正文字体变量(可外部覆盖,与 markdown-renderer 保持一致):
|
|
5
|
+
--md-font-body, --md-font-size-base, --md-font-mono
|
|
6
|
+
============================================================ */
|
|
5
7
|
.markdown-editor {
|
|
6
8
|
border: 1px solid var(--md-border, #d0d7de);
|
|
7
9
|
border-radius: 6px;
|
|
@@ -106,9 +108,9 @@
|
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
.markdown-editor-panel .cm-editor .cm-content {
|
|
109
|
-
font-family: ui-monospace, SFMono-Regular, 'SF Mono',
|
|
110
|
-
monospace;
|
|
111
|
-
font-size: 14px;
|
|
111
|
+
font-family: var(--md-font-mono, ui-monospace, SFMono-Regular, 'SF Mono',
|
|
112
|
+
Menlo, Consolas, monospace);
|
|
113
|
+
font-size: var(--md-font-size-base, 14px);
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
.markdown-preview-panel {
|
|
@@ -357,6 +359,13 @@
|
|
|
357
359
|
background: var(--md-code-bg, #f6f8fa);
|
|
358
360
|
}
|
|
359
361
|
|
|
362
|
+
.markdown-editor.markdown-theme-dark .markdown-editor-counter,
|
|
363
|
+
.markdown-editor.markdown-theme-github-dark .markdown-editor-counter {
|
|
364
|
+
background: var(--md-code-bg, #161b22);
|
|
365
|
+
color: var(--md-text-secondary);
|
|
366
|
+
border-top-color: var(--md-border);
|
|
367
|
+
}
|
|
368
|
+
|
|
360
369
|
.markdown-editor.markdown-theme-dark .cm-editor .cm-gutters {
|
|
361
370
|
background-color: var(--md-bg);
|
|
362
371
|
border-right-color: var(--md-border);
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
/* ============================================================
|
|
2
2
|
CSS Custom Properties — 主题变量
|
|
3
|
+
|
|
4
|
+
正文字体变量(可外部覆盖,在 :root 或父级中设置):
|
|
5
|
+
--md-font-body: 'Your Font', sans-serif;
|
|
6
|
+
--md-font-size-base: 18px;
|
|
7
|
+
--md-font-mono: 'Consolas', monospace;
|
|
8
|
+
--md-line-height: 1.6;
|
|
3
9
|
============================================================ */
|
|
10
|
+
:root {
|
|
11
|
+
--md-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica,
|
|
12
|
+
Arial, sans-serif;
|
|
13
|
+
--md-font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
|
|
14
|
+
monospace;
|
|
15
|
+
--md-font-size-base: 14px;
|
|
16
|
+
--md-line-height: 1.7;
|
|
17
|
+
}
|
|
18
|
+
|
|
4
19
|
.markdown-renderer {
|
|
5
20
|
/* 间距 */
|
|
6
21
|
--md-spacing-xs: 4px;
|
|
@@ -9,14 +24,6 @@
|
|
|
9
24
|
--md-spacing-lg: 24px;
|
|
10
25
|
--md-spacing-xl: 32px;
|
|
11
26
|
|
|
12
|
-
/* 字体 */
|
|
13
|
-
--md-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica,
|
|
14
|
-
Arial, sans-serif;
|
|
15
|
-
--md-font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
|
|
16
|
-
monospace;
|
|
17
|
-
--md-font-size-base: 16px;
|
|
18
|
-
--md-line-height: 1.7;
|
|
19
|
-
|
|
20
27
|
/* 圆角 */
|
|
21
28
|
--md-radius: 6px;
|
|
22
29
|
}
|
|
@@ -44,7 +51,7 @@
|
|
|
44
51
|
--md-text-secondary: #8b949e;
|
|
45
52
|
--md-border: #30363d;
|
|
46
53
|
--md-link: #58a6ff;
|
|
47
|
-
--md-code-bg: #
|
|
54
|
+
--md-code-bg: #161b22;
|
|
48
55
|
--md-blockquote-border: #30363d;
|
|
49
56
|
--md-blockquote-text: #8b949e;
|
|
50
57
|
--md-table-border: #30363d;
|
|
@@ -59,7 +66,7 @@
|
|
|
59
66
|
--md-text-secondary: #8b949e;
|
|
60
67
|
--md-border: #30363d;
|
|
61
68
|
--md-link: #58a6ff;
|
|
62
|
-
--md-code-bg: #
|
|
69
|
+
--md-code-bg: #161b22;
|
|
63
70
|
--md-blockquote-border: #30363d;
|
|
64
71
|
--md-blockquote-text: #8b949e;
|
|
65
72
|
--md-table-border: #30363d;
|
|
@@ -451,6 +458,20 @@
|
|
|
451
458
|
border-radius: 3px;
|
|
452
459
|
}
|
|
453
460
|
|
|
461
|
+
/* Dark theme inline code: 强制深色背景 + 浅色文字,避免变量未正确应用时出现浅白底浅白字 */
|
|
462
|
+
.markdown-theme-dark .markdown-body code:not(pre code),
|
|
463
|
+
.markdown-theme-github-dark .markdown-body code:not(pre code),
|
|
464
|
+
.markdown-theme-auto .markdown-body code:not(pre code) {
|
|
465
|
+
background-color: var(--md-code-bg, #161b22);
|
|
466
|
+
color: var(--md-text, #e6edf3);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.markdown-theme-dark .markdown-body code:not(pre code) span,
|
|
470
|
+
.markdown-theme-github-dark .markdown-body code:not(pre code) span,
|
|
471
|
+
.markdown-theme-auto .markdown-body code:not(pre code) span {
|
|
472
|
+
color: inherit;
|
|
473
|
+
}
|
|
474
|
+
|
|
454
475
|
/* Dark theme code block overrides */
|
|
455
476
|
.markdown-theme-dark .markdown-body .code-block,
|
|
456
477
|
.markdown-theme-github-dark .markdown-body .code-block {
|
|
@@ -571,7 +592,7 @@
|
|
|
571
592
|
}
|
|
572
593
|
|
|
573
594
|
.markdown-body {
|
|
574
|
-
font-size:
|
|
595
|
+
font-size: var(--md-font-size-base);
|
|
575
596
|
}
|
|
576
597
|
|
|
577
598
|
.markdown-body h1 {
|
package/package.json
CHANGED