@vscode/markdown-editor 0.0.2-46 → 0.0.2-48
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/package.json +1 -1
- package/src/view/editor.css +12 -0
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Markdown editor
|
|
2
|
+
|
|
3
|
+
`@vscode/markdown-editor` is an experimental, browser-based hybrid Markdown
|
|
4
|
+
editor. It keeps Markdown source as the canonical document while presenting
|
|
5
|
+
inactive blocks in rendered form and active blocks in editable source form.
|
|
6
|
+
|
|
7
|
+
Start with the [current implementation specification](./docs/specification.md).
|
|
8
|
+
It explains the architecture, runtime data flow, public integration surface,
|
|
9
|
+
extension points, the VS Code custom text editor adapter, tests, and current
|
|
10
|
+
limitations.
|
|
11
|
+
|
|
12
|
+
Other package documents:
|
|
13
|
+
|
|
14
|
+
- [Original design](./docs/design.md) - historical design intent.
|
|
15
|
+
- [Original implementation plan](./docs/plan.md) - historical roadmap; its
|
|
16
|
+
checkboxes do not describe current completion.
|
|
17
|
+
- [Engineering backlog](./docs/todo.md) - known issues and future work.
|
|
18
|
+
|
|
19
|
+
From this package directory:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
pnpm test
|
|
23
|
+
pnpm test:e2e
|
|
24
|
+
pnpm build
|
|
25
|
+
pnpm build:explorer
|
|
26
|
+
```
|
package/package.json
CHANGED
package/src/view/editor.css
CHANGED
|
@@ -629,6 +629,18 @@ pre.md-unhandled-scroll.md-code-block {
|
|
|
629
629
|
white-space: pre;
|
|
630
630
|
}
|
|
631
631
|
|
|
632
|
+
/*
|
|
633
|
+
* An inactive ordered item uses the browser's native `::marker`. Match its
|
|
634
|
+
* typography when revealing the source marker so switching the active item
|
|
635
|
+
* does not change the number's width or horizontal position. Keep unordered
|
|
636
|
+
* source markers in the standard muted monospace source style.
|
|
637
|
+
*/
|
|
638
|
+
ol.md-list>.md-list-item-active>.md-marker-listItemMarker,
|
|
639
|
+
ol.md-list>.md-list-item-active>.md-list-gutter>.md-marker-listItemMarker {
|
|
640
|
+
font-family: inherit;
|
|
641
|
+
font-size: inherit;
|
|
642
|
+
}
|
|
643
|
+
|
|
632
644
|
/*
|
|
633
645
|
* A nested item's source indentation precedes its bullet (`␣␣- text`). The
|
|
634
646
|
* indent glue and the bullet are mounted together in this gutter span, which is
|