@vscode/markdown-editor 0.0.2-67 → 0.0.2-69
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.d.ts +16 -12
- package/dist/index.js +593 -570
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/view/editor.css +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -1099,11 +1099,12 @@ export declare class EditorModel {
|
|
|
1099
1099
|
/**
|
|
1100
1100
|
* Read-only mode. When `true`, the editor never reveals a block's source
|
|
1101
1101
|
* markers (markdown special characters like `**`, `#`, list bullets, code
|
|
1102
|
-
* fences, `$…$`) — every block stays in its clean rendered form regardless
|
|
1103
|
-
*
|
|
1104
|
-
*
|
|
1105
|
-
*
|
|
1106
|
-
*
|
|
1102
|
+
* fences, `$…$`) — every block stays in its clean rendered form regardless of
|
|
1103
|
+
* where the caret/selection is — and text-editing commands are ignored.
|
|
1104
|
+
* Explicit interactions with rendered controls, such as task checkboxes,
|
|
1105
|
+
* remain available. Plain text selection still works everywhere (so the user
|
|
1106
|
+
* can copy). The default (`false`) is the normal editing mode where the active
|
|
1107
|
+
* block reveals its markers.
|
|
1107
1108
|
*/
|
|
1108
1109
|
readonly readonlyMode: ISettableObservable<boolean, void>;
|
|
1109
1110
|
/**
|
|
@@ -1155,8 +1156,8 @@ export declare class EditorModel {
|
|
|
1155
1156
|
* The parsed document. Threads the previous document into the parser so
|
|
1156
1157
|
* unchanged blocks keep their object identity across reparses (see
|
|
1157
1158
|
* {@link MarkdownParser.parse}). Writing `previous` inside the compute is
|
|
1158
|
-
*
|
|
1159
|
-
*
|
|
1159
|
+
* safe: unchanged source reuses it directly, while changed source produces
|
|
1160
|
+
* a result structurally identical to a full reparse.
|
|
1160
1161
|
*/
|
|
1161
1162
|
readonly document: IObservableWithChange<DocumentAstNode, void>;
|
|
1162
1163
|
/**
|
|
@@ -1218,6 +1219,8 @@ export declare class EditorModel {
|
|
|
1218
1219
|
* by blank lines, and place the caret after it.
|
|
1219
1220
|
*/
|
|
1220
1221
|
materializePendingParagraph(text: string): void;
|
|
1222
|
+
/** Sets a rendered task checkbox state in either editing or read-only mode. */
|
|
1223
|
+
setTaskCheckboxChecked(item: ListItemAstNode, checked: boolean): void;
|
|
1221
1224
|
applyEdit(edit: StringEdit, selection?: Selection_2): void;
|
|
1222
1225
|
applyEditForSelection(edit: StringEdit): void;
|
|
1223
1226
|
private _applySourceEdit;
|
|
@@ -1438,12 +1441,13 @@ export declare class EditorView extends Disposable {
|
|
|
1438
1441
|
*/
|
|
1439
1442
|
isPointInContent(point: Point2D): boolean;
|
|
1440
1443
|
/**
|
|
1441
|
-
* Whether `
|
|
1442
|
-
* selection this editor paints itself from `model.selection`.
|
|
1443
|
-
*
|
|
1444
|
-
*
|
|
1444
|
+
* Whether `range` intersects the rendered source text — the region whose
|
|
1445
|
+
* selection this editor paints itself from `model.selection`. This also
|
|
1446
|
+
* catches select-all ranges whose endpoints surround the rendered content.
|
|
1447
|
+
* Overlays anchored beside the text (comment widgets and the like) are *not*
|
|
1448
|
+
* part of it and keep their own native selection behaviour.
|
|
1445
1449
|
*/
|
|
1446
|
-
|
|
1450
|
+
intersectsRenderedContent(range: Range): boolean;
|
|
1447
1451
|
private readonly _renderAutorun;
|
|
1448
1452
|
/** Current mounted blocks, or empty before the first render. */
|
|
1449
1453
|
private get _blocks();
|