@helping-ai-workflow/md2doc 3.17.2 → 3.17.3
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/lib/editor/blockmap.js +65 -0
- package/lib/editor/client.js +1640 -131
- package/lib/editor/code-edit.js +6 -5
- package/lib/editor/convert-md.js +9 -2
- package/lib/editor/dot-preview.js +65 -0
- package/lib/editor/dot-worker.js +14 -0
- package/lib/editor/inline-md.js +34 -4
- package/lib/editor/list-md.js +143 -47
- package/lib/editor/server.js +52 -3
- package/lib/editor/wave-ui.js +9 -0
- package/lib/md2doc.js +25 -2
- package/lib/theme/tokens.js +4 -1
- package/package.json +1 -1
package/lib/theme/tokens.js
CHANGED
|
@@ -34,6 +34,9 @@ const THEME_TOKENS = [
|
|
|
34
34
|
{ name: 'active-bg', light: ['#dbe6f3'], dark: '#24364f' },
|
|
35
35
|
{ name: 'hit-bg', light: ['#fff5c2'], dark: '#4d4417' },
|
|
36
36
|
{ name: 'mark-bg', light: ['#fde68a'], dark: '#6e5e14' },
|
|
37
|
+
// A search hit inside an inline svg is painted on the svg plate, which is white in both themes,
|
|
38
|
+
// so its halo is the same yellow in both (the dark mark-bg would read worse than no hit at all).
|
|
39
|
+
{ name: 'svg-hit', light: ['#fde68a'], dark: '#fde68a', direct: true },
|
|
37
40
|
{ name: 'code', light: ['#b93a0c'], dark: '#ff9f70' },
|
|
38
41
|
{ name: 'accent-soft', light: ['#93c5fd'], dark: '#6ea8f5' },
|
|
39
42
|
{ name: 'error', light: ['#b91c1c'], dark: '#ff8a8a' },
|
|
@@ -165,7 +168,7 @@ function themeCss() {
|
|
|
165
168
|
' ' + D + ' .content .drawio { background: #ffffff; border-radius: 6px; box-shadow: 0 0 0 10px #ffffff; }',
|
|
166
169
|
// R7 甲: a Markdown-native inline svg (wrapped in .inline-svg by the renderer) gets the
|
|
167
170
|
// same white plate; its ink stays the light text colour because the plate is always white.
|
|
168
|
-
' ' + D + ' .content .inline-svg > svg, ' + D + ' .content .ed-block[data-svg-plate="1"] > svg, ' + D + ' .content .ed-block[data-svg-plate="1"] > p > svg { background: #ffffff; color: #1f2328; border-radius: 4px; box-shadow: 0 0 0 10px #ffffff; }',
|
|
171
|
+
' ' + D + ' .content .inline-svg > svg, ' + D + ' .content .ed-block[data-svg-plate="1"] > svg, ' + D + ' .content .ed-block[data-svg-plate="1"] > p > svg, ' + D + ' .content .ed-block[data-svg-plate="1"] .ed-li-text > svg, ' + D + ' .content .ed-block[data-svg-plate="1"] .ed-li-text > p > svg { background: #ffffff; color: #1f2328; border-radius: 4px; box-shadow: 0 0 0 10px #ffffff; }',
|
|
169
172
|
' ' + D + ' .lightbox-canvas > svg[data-md2doc-recoloured] { background: var(--md-bg); }',
|
|
170
173
|
' }',
|
|
171
174
|
' .md2doc-theme-toggle { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 40px; height: 40px;',
|