myst-spec-ext
Advanced tools
Comparing version 1.1.10 to 1.1.11
@@ -1,2 +0,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 } from 'myst-spec'; | ||
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 } from 'myst-spec'; | ||
type Visibility = 'show' | 'hide' | 'remove'; | ||
@@ -30,2 +30,27 @@ export type Delete = Parent & { | ||
}; | ||
/** | ||
* AlgorithmLine is, e.g., a line in an algorithm and can be numbered as well as indented. | ||
* Otherwise this works the same as a paragraph, ideally with tighter styling. | ||
* The Line is used in Algorithms (e.g. when parsing from LaTeX) | ||
*/ | ||
export type AlgorithmLine = Parent & { | ||
type: 'algorithmLine'; | ||
indent?: number; | ||
enumerator?: string; | ||
}; | ||
export type InlineMath = SpecInlineMath & { | ||
label?: string; | ||
identifier?: string; | ||
}; | ||
export type Math = SpecMath & { | ||
kind?: 'subequation'; | ||
}; | ||
export type MathGroup = { | ||
type: 'mathGroup'; | ||
label?: string; | ||
identifier?: string; | ||
enumerated?: boolean; | ||
enumerator?: string; | ||
children: Math[]; | ||
}; | ||
export type FootnoteDefinition = FND & { | ||
@@ -164,3 +189,4 @@ /** @deprecated this should be enumerator */ | ||
}; | ||
export type Container = SpecContainer & { | ||
export type Container = Omit<SpecContainer, 'kind'> & { | ||
kind?: 'figure' | 'table' | 'quote' | 'code'; | ||
source?: Dependency; | ||
@@ -167,0 +193,0 @@ }; |
{ | ||
"name": "myst-spec-ext", | ||
"version": "1.1.10", | ||
"version": "1.1.11", | ||
"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
12325
200