@vscode/markdown-editor 0.0.2-91 → 0.0.2-92

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 CHANGED
@@ -1502,10 +1502,10 @@ export declare interface EditorViewOptions extends BlockViewOptions {
1502
1502
 
1503
1503
  export declare class EmphasisAstNode extends AstNode {
1504
1504
  readonly openMarker: MarkerAstNode;
1505
- readonly content: readonly (InlineAstNode | GlueAstNode)[];
1505
+ readonly content: readonly InlineContentAstNode[];
1506
1506
  readonly closeMarker: MarkerAstNode;
1507
1507
  readonly kind = "emphasis";
1508
- constructor(openMarker: MarkerAstNode, content: readonly (InlineAstNode | GlueAstNode)[], closeMarker: MarkerAstNode);
1508
+ constructor(openMarker: MarkerAstNode, content: readonly InlineContentAstNode[], closeMarker: MarkerAstNode);
1509
1509
  get children(): readonly AstNode[];
1510
1510
  mapChildren(m: ReadonlyMap<AstNode, AstNode>): AstNode;
1511
1511
  }
@@ -1799,10 +1799,10 @@ export declare type GutterMarkerType = 'added' | 'modified' | 'deleted';
1799
1799
  export declare class HeadingAstNode extends BlockAstNodeBase {
1800
1800
  readonly level: 1 | 2 | 3 | 4 | 5 | 6;
1801
1801
  readonly marker: MarkerAstNode;
1802
- readonly content: readonly (InlineAstNode | GlueAstNode)[];
1802
+ readonly content: readonly InlineContentAstNode[];
1803
1803
  readonly leadingTrivia?: GlueAstNode | undefined;
1804
1804
  readonly kind = "heading";
1805
- constructor(level: 1 | 2 | 3 | 4 | 5 | 6, marker: MarkerAstNode, content: readonly (InlineAstNode | GlueAstNode)[], leadingTrivia?: GlueAstNode | undefined);
1805
+ constructor(level: 1 | 2 | 3 | 4 | 5 | 6, marker: MarkerAstNode, content: readonly InlineContentAstNode[], leadingTrivia?: GlueAstNode | undefined);
1806
1806
  get children(): readonly AstNode[];
1807
1807
  mapChildren(m: ReadonlyMap<AstNode, AstNode>): AstNode;
1808
1808
  withLeadingTrivia(trivia: GlueAstNode | undefined): HeadingAstNode;
@@ -2016,6 +2016,8 @@ declare class InlineCodeViewData {
2016
2016
  constructor(ast: InlineCodeAstNode, content: readonly AnyViewData[]);
2017
2017
  }
2018
2018
 
2019
+ declare type InlineContentAstNode = InlineAstNode | MarkerAstNode | GlueAstNode;
2020
+
2019
2021
  export declare class InlineMathAstNode extends AstNode {
2020
2022
  readonly content: readonly (MarkerAstNode | GlueAstNode)[];
2021
2023
  readonly kind = "inlineMath";
@@ -2185,9 +2187,9 @@ export declare class LengthReplacement {
2185
2187
 
2186
2188
  export declare class LinkAstNode extends AstNode {
2187
2189
  readonly url: string;
2188
- readonly content: readonly (MarkerAstNode | InlineAstNode | GlueAstNode)[];
2190
+ readonly content: readonly InlineContentAstNode[];
2189
2191
  readonly kind = "link";
2190
- constructor(url: string, content: readonly (MarkerAstNode | InlineAstNode | GlueAstNode)[]);
2192
+ constructor(url: string, content: readonly InlineContentAstNode[]);
2191
2193
  get children(): readonly AstNode[];
2192
2194
  mapChildren(m: ReadonlyMap<AstNode, AstNode>): AstNode;
2193
2195
  protected _localEquals(o: this): boolean;
@@ -2592,10 +2594,10 @@ declare interface OpenHtmlCommentSource extends HtmlCommentSourceBase {
2592
2594
  export declare function outdent(config?: IndentationConfig): EditCommand;
2593
2595
 
2594
2596
  export declare class ParagraphAstNode extends BlockAstNodeBase {
2595
- readonly content: readonly (InlineAstNode | GlueAstNode)[];
2597
+ readonly content: readonly InlineContentAstNode[];
2596
2598
  readonly leadingTrivia?: GlueAstNode | undefined;
2597
2599
  readonly kind = "paragraph";
2598
- constructor(content: readonly (InlineAstNode | GlueAstNode)[], leadingTrivia?: GlueAstNode | undefined);
2600
+ constructor(content: readonly InlineContentAstNode[], leadingTrivia?: GlueAstNode | undefined);
2599
2601
  get children(): readonly AstNode[];
2600
2602
  mapChildren(m: ReadonlyMap<AstNode, AstNode>): AstNode;
2601
2603
  withLeadingTrivia(trivia: GlueAstNode | undefined): ParagraphAstNode;
@@ -2893,10 +2895,10 @@ export declare type SourceOffset = number;
2893
2895
 
2894
2896
  export declare class StrikethroughAstNode extends AstNode {
2895
2897
  readonly openMarker: MarkerAstNode;
2896
- readonly content: readonly (InlineAstNode | GlueAstNode)[];
2898
+ readonly content: readonly InlineContentAstNode[];
2897
2899
  readonly closeMarker: MarkerAstNode;
2898
2900
  readonly kind = "strikethrough";
2899
- constructor(openMarker: MarkerAstNode, content: readonly (InlineAstNode | GlueAstNode)[], closeMarker: MarkerAstNode);
2901
+ constructor(openMarker: MarkerAstNode, content: readonly InlineContentAstNode[], closeMarker: MarkerAstNode);
2900
2902
  get children(): readonly AstNode[];
2901
2903
  mapChildren(m: ReadonlyMap<AstNode, AstNode>): AstNode;
2902
2904
  }
@@ -2951,10 +2953,10 @@ export declare class StringValue {
2951
2953
 
2952
2954
  export declare class StrongAstNode extends AstNode {
2953
2955
  readonly openMarker: MarkerAstNode;
2954
- readonly content: readonly (InlineAstNode | GlueAstNode)[];
2956
+ readonly content: readonly InlineContentAstNode[];
2955
2957
  readonly closeMarker: MarkerAstNode;
2956
2958
  readonly kind = "strong";
2957
- constructor(openMarker: MarkerAstNode, content: readonly (InlineAstNode | GlueAstNode)[], closeMarker: MarkerAstNode);
2959
+ constructor(openMarker: MarkerAstNode, content: readonly InlineContentAstNode[], closeMarker: MarkerAstNode);
2958
2960
  get children(): readonly AstNode[];
2959
2961
  mapChildren(m: ReadonlyMap<AstNode, AstNode>): AstNode;
2960
2962
  }