myst-spec-ext
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -76,2 +76,3 @@ import type { 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'; | ||
executable?: boolean; | ||
filename?: string; | ||
visibility?: 'show' | 'hide' | 'remove'; | ||
@@ -87,6 +88,8 @@ }; | ||
label: string; | ||
children: StaticPhrasingContent[]; | ||
error?: boolean; | ||
identifier?: string; | ||
children?: StaticPhrasingContent[]; | ||
error?: boolean | 'not found' | 'rendering error'; | ||
prefix?: string; | ||
suffix?: string; | ||
partial?: 'author' | 'year'; | ||
}; | ||
@@ -133,5 +136,31 @@ export type CiteGroup = { | ||
}; | ||
type IncludeFilter = { | ||
startAfter?: string; | ||
startAt?: string; | ||
endBefore?: string; | ||
endAt?: string; | ||
/** Lines start at 1 and can be negative (-1 is the last line). For example, [1, 3, [10]] will select lines 1, 3 and 10 until the end. */ | ||
lines?: (number | [number, number?])[]; | ||
}; | ||
export type Include = { | ||
type: 'include'; | ||
file: string; | ||
literal?: boolean; | ||
filter?: IncludeFilter; | ||
lang?: string; | ||
showLineNumbers?: boolean; | ||
/** The `match` will be removed in a transform */ | ||
startingLineNumber?: number | 'match'; | ||
emphasizeLines?: number[]; | ||
filename?: string; | ||
identifier?: string; | ||
label?: string; | ||
children?: (FlowContent | ListContent | PhrasingContent)[]; | ||
/** `caption` is temporary, and is used before a transform */ | ||
caption?: (FlowContent | ListContent | PhrasingContent)[]; | ||
}; | ||
export type Container = SpecContainer & { | ||
source?: Dependency; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "myst-spec-ext", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"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
10707
170