Skip to content

Implement myst-spec via @types/mdast types #2946

@agoose77

Description

@agoose77

In order to migrate our type system over to @types/mdast, we need to first implement the types in myst-spec. This will require codifying our existing spec/schema, and then rebuilding it in the @types/mdast convention.

This change is likely to be breaking to downstream. Internally, we will move to as any casts where appropriate (or better, as as NodeAsAny where type NodeAsAny = any for discoverability) in order to get main compilation to pass.

See #2579 for an example of this (out of date).

Definition of Done

  • myst-spec is built from @types/mdast types.
  • It is possible to build main and publish mystmd.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions