Skip to content

Commit 5c88fd4

Browse files
committed
wip: initial commit
1 parent 1eadfb3 commit 5c88fd4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+483
-2253
lines changed

package-lock.json

Lines changed: 2 additions & 85 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/myst-directives/src/aside.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { DirectiveSpec, DirectiveData, GenericNode } from 'myst-common';
22
import type { Aside } from 'myst-spec-ext';
3-
import type { FlowContent, ListContent, PhrasingContent } from 'myst-spec';
3+
import type { FlowContent } from 'myst-spec';
44
import { addCommonDirectiveOptions, commonDirectiveOptions } from './utils.js';
55

66
export const asideDirective: DirectiveSpec = {
@@ -18,7 +18,7 @@ export const asideDirective: DirectiveSpec = {
1818
required: true,
1919
},
2020
run(data: DirectiveData): GenericNode[] {
21-
const children = [...(data.body as unknown as (FlowContent | ListContent | PhrasingContent)[])];
21+
const children = [...(data.body as unknown as FlowContent[])];
2222
if (data.arg) {
2323
children.unshift({
2424
type: 'admonitionTitle',

packages/myst-spec-ext/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export type Aside = Node &
276276
Target & {
277277
type: 'aside';
278278
kind?: 'sidebar' | 'margin' | 'topic';
279-
children?: (FlowContent | ListContent | PhrasingContent)[];
279+
children?: FlowContent[];
280280
class?: Image['class'];
281281
};
282282

0 commit comments

Comments
 (0)