@vscode/markdown-editor 0.0.2-47 → 0.0.2-49
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 +26 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +1725 -1470
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/view/editor.css +26 -2
- package/src/view/themes/vscode-default.css +13 -0
- package/src/view/themes/vscode-github.css +13 -0
package/package.json
CHANGED
package/src/view/editor.css
CHANGED
|
@@ -31,6 +31,18 @@
|
|
|
31
31
|
caret-color: transparent;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
.md-editor-a11y-status {
|
|
35
|
+
position: absolute;
|
|
36
|
+
width: 1px;
|
|
37
|
+
height: 1px;
|
|
38
|
+
padding: 0;
|
|
39
|
+
margin: -1px;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
clip: rect(0, 0, 0, 0);
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
border: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
34
46
|
/*
|
|
35
47
|
* The transient empty paragraph — the blank line conjured by pressing Enter at
|
|
36
48
|
* the end of a paragraph (see `PendingParagraph` in the model). It is not part
|
|
@@ -629,6 +641,18 @@ pre.md-unhandled-scroll.md-code-block {
|
|
|
629
641
|
white-space: pre;
|
|
630
642
|
}
|
|
631
643
|
|
|
644
|
+
/*
|
|
645
|
+
* An inactive ordered item uses the browser's native `::marker`. Match its
|
|
646
|
+
* typography when revealing the source marker so switching the active item
|
|
647
|
+
* does not change the number's width or horizontal position. Keep unordered
|
|
648
|
+
* source markers in the standard muted monospace source style.
|
|
649
|
+
*/
|
|
650
|
+
ol.md-list>.md-list-item-active>.md-marker-listItemMarker,
|
|
651
|
+
ol.md-list>.md-list-item-active>.md-list-gutter>.md-marker-listItemMarker {
|
|
652
|
+
font-family: inherit;
|
|
653
|
+
font-size: inherit;
|
|
654
|
+
}
|
|
655
|
+
|
|
632
656
|
/*
|
|
633
657
|
* A nested item's source indentation precedes its bullet (`␣␣- text`). The
|
|
634
658
|
* indent glue and the bullet are mounted together in this gutter span, which is
|
|
@@ -760,8 +784,8 @@ pre.md-unhandled-scroll.md-code-block {
|
|
|
760
784
|
.md-checkbox:checked::after {
|
|
761
785
|
content: '';
|
|
762
786
|
position: absolute;
|
|
763
|
-
left:
|
|
764
|
-
top:
|
|
787
|
+
left: 2.5px;
|
|
788
|
+
top: -1px;
|
|
765
789
|
width: 5px;
|
|
766
790
|
height: 9px;
|
|
767
791
|
border: solid white;
|
|
@@ -49,6 +49,19 @@
|
|
|
49
49
|
* stays visible on dark color themes.
|
|
50
50
|
*/
|
|
51
51
|
--md-cursor-background: var(--vscode-editorCursor-foreground, #000);
|
|
52
|
+
--md-readonly-background: var(--vscode-button-secondaryBackground,
|
|
53
|
+
var(--vscode-editorWidget-background, #f3f3f3));
|
|
54
|
+
--md-readonly-background-hover: var(--vscode-button-secondaryHoverBackground,
|
|
55
|
+
var(--vscode-button-secondaryBackground,
|
|
56
|
+
var(--vscode-editorWidget-background, #e9e9e9)));
|
|
57
|
+
--md-readonly-foreground: var(--vscode-button-secondaryForeground,
|
|
58
|
+
var(--vscode-editorWidget-foreground, #444));
|
|
59
|
+
--md-readonly-border: var(--vscode-button-secondaryBorder,
|
|
60
|
+
var(--vscode-button-border,
|
|
61
|
+
var(--vscode-contrastBorder, var(--vscode-editorWidget-border, #b8b8b8))));
|
|
62
|
+
--md-readonly-border-hover: var(--vscode-button-secondaryBorder,
|
|
63
|
+
var(--vscode-button-border,
|
|
64
|
+
var(--vscode-contrastBorder, var(--vscode-editorWidget-border, #8d8d8d))));
|
|
52
65
|
--md-readonly-accent: var(--vscode-button-background, rgb(45, 92, 180));
|
|
53
66
|
--md-readonly-accent-foreground: var(--vscode-button-foreground, #fff);
|
|
54
67
|
--md-find-widget-background: var(--vscode-editorWidget-background, #f3f3f3);
|
|
@@ -58,6 +58,19 @@
|
|
|
58
58
|
* stays visible on dark color themes.
|
|
59
59
|
*/
|
|
60
60
|
--md-cursor-background: var(--vscode-editorCursor-foreground, #000);
|
|
61
|
+
--md-readonly-background: var(--vscode-button-secondaryBackground,
|
|
62
|
+
var(--vscode-editorWidget-background, #f3f3f3));
|
|
63
|
+
--md-readonly-background-hover: var(--vscode-button-secondaryHoverBackground,
|
|
64
|
+
var(--vscode-button-secondaryBackground,
|
|
65
|
+
var(--vscode-editorWidget-background, #e9e9e9)));
|
|
66
|
+
--md-readonly-foreground: var(--vscode-button-secondaryForeground,
|
|
67
|
+
var(--vscode-editorWidget-foreground, #444));
|
|
68
|
+
--md-readonly-border: var(--vscode-button-secondaryBorder,
|
|
69
|
+
var(--vscode-button-border,
|
|
70
|
+
var(--vscode-contrastBorder, var(--vscode-editorWidget-border, #b8b8b8))));
|
|
71
|
+
--md-readonly-border-hover: var(--vscode-button-secondaryBorder,
|
|
72
|
+
var(--vscode-button-border,
|
|
73
|
+
var(--vscode-contrastBorder, var(--vscode-editorWidget-border, #8d8d8d))));
|
|
61
74
|
--md-readonly-accent: var(--vscode-button-background, rgb(45, 92, 180));
|
|
62
75
|
--md-readonly-accent-foreground: var(--vscode-button-foreground, #fff);
|
|
63
76
|
--md-inline-code-background: color-mix(in srgb,
|