myst-spec-ext
Advanced tools
Comparing version 1.5.1 to 1.5.2
import type { Block as SpecBlock, Parent, StaticPhrasingContent, FlowContent, ListContent, PhrasingContent, TableCell as SpecTableCell, FootnoteReference as FNR, FootnoteDefinition as FND, Heading as SpecHeading, Image as SpecImage, Admonition as SpecAdmonition, Code as SpecCode, ListItem as SpecListItem, Container as SpecContainer, InlineMath as SpecInlineMath, Math as SpecMath, Node, CrossReference as SpecCrossReference, Link as SpecLink } from 'myst-spec'; | ||
type Visibility = 'show' | 'hide' | 'remove'; | ||
export type IndexEntry = { | ||
entry: string; | ||
subEntry?: { | ||
value: string; | ||
kind: 'entry' | 'see' | 'seealso'; | ||
}; | ||
emphasis?: boolean; | ||
}; | ||
type Target = { | ||
label?: string; | ||
identifier?: string; | ||
html_id?: string; | ||
indexEntries?: IndexEntry[]; | ||
}; | ||
export type Delete = Parent & { | ||
@@ -40,6 +54,3 @@ type: 'delete'; | ||
}; | ||
export type InlineMath = SpecInlineMath & { | ||
label?: string; | ||
identifier?: string; | ||
}; | ||
export type InlineMath = SpecInlineMath & Target; | ||
export type Math = SpecMath & { | ||
@@ -49,6 +60,4 @@ kind?: 'subequation'; | ||
}; | ||
export type MathGroup = { | ||
export type MathGroup = Target & { | ||
type: 'mathGroup'; | ||
label?: string; | ||
identifier?: string; | ||
enumerated?: boolean; | ||
@@ -82,4 +91,3 @@ enumerator?: string; | ||
}; | ||
export type Heading = SpecHeading & { | ||
html_id?: string; | ||
export type Heading = SpecHeading & Target & { | ||
implicit?: true; | ||
@@ -92,6 +100,4 @@ }; | ||
}; | ||
export type Iframe = { | ||
export type Iframe = Target & { | ||
type: 'iframe'; | ||
label?: string; | ||
identifier?: string; | ||
src: string; | ||
@@ -209,8 +215,5 @@ width?: string; | ||
}; | ||
export type Output = Node & { | ||
export type Output = Node & Target & { | ||
type: 'output'; | ||
id?: string; | ||
identifier?: string; | ||
label?: string; | ||
html_id?: string; | ||
data?: any[]; | ||
@@ -220,8 +223,6 @@ visibility?: Visibility; | ||
}; | ||
export type Aside = Node & { | ||
export type Aside = Node & Target & { | ||
type: 'aside'; | ||
kind?: 'sidebar' | 'margin' | 'topic'; | ||
children?: (FlowContent | ListContent | PhrasingContent)[]; | ||
identifier?: string; | ||
label?: string; | ||
class?: Image['class']; | ||
@@ -228,0 +229,0 @@ }; |
{ | ||
"name": "myst-spec-ext", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "Extensions for myst-spec that are used in mystmd", | ||
@@ -5,0 +5,0 @@ "author": "Rowan Cockett <rowan@curvenote.com>", |
Sorry, the diff of this file is not supported yet
15223
248