diff --git a/.changeset/weak-bats-fetch.md b/.changeset/weak-bats-fetch.md new file mode 100644 index 000000000..e93868887 --- /dev/null +++ b/.changeset/weak-bats-fetch.md @@ -0,0 +1,5 @@ +--- +"myst-cli": patch +--- + +Remove broken and unused reactive roles. diff --git a/docs/directives.mjs b/docs/directives.mjs index a6d4b7411..4f28ca3d7 100644 --- a/docs/directives.mjs +++ b/docs/directives.mjs @@ -6,7 +6,6 @@ import { cardDirective } from 'myst-ext-card'; import { gridDirectives } from 'myst-ext-grid'; import { proofDirective } from 'myst-ext-proof'; import { exerciseDirectives } from 'myst-ext-exercise'; -import { reactiveDirective, reactiveRole } from 'myst-ext-reactive'; import { tabDirectives } from 'myst-ext-tabs'; import { fileError } from 'myst-common'; @@ -15,11 +14,10 @@ const allDirectives = [ ...gridDirectives, ...exerciseDirectives, ...tabDirectives, - reactiveDirective, cardDirective, proofDirective, ]; -const allRoles = [...defaultRoles, reactiveRole]; +const allRoles = [...defaultRoles]; /** * @param {import('myst-common').OptionDefinition} option diff --git a/packages/myst-cli/package.json b/packages/myst-cli/package.json index ecd0bc47d..120169232 100644 --- a/packages/myst-cli/package.json +++ b/packages/myst-cli/package.json @@ -89,8 +89,8 @@ "myst-to-md": "^1.0.14", "myst-to-tex": "^1.0.40", "myst-to-typst": "^0.0.28", - "myst-transforms": "^1.3.28", "myst-toc": "^0.1.2", + "myst-transforms": "^1.3.28", "nanoid": "^4.0.0", "nbtx": "^0.2.3", "node-fetch": "^3.3.1", diff --git a/packages/myst-cli/src/process/myst.ts b/packages/myst-cli/src/process/myst.ts index ca1172d61..175139819 100644 --- a/packages/myst-cli/src/process/myst.ts +++ b/packages/myst-cli/src/process/myst.ts @@ -3,7 +3,6 @@ import { cardDirective } from 'myst-ext-card'; import { gridDirectives } from 'myst-ext-grid'; import { proofDirective } from 'myst-ext-proof'; import { exerciseDirectives } from 'myst-ext-exercise'; -import { reactiveDirective, reactiveRole } from 'myst-ext-reactive'; import { tabDirectives } from 'myst-ext-tabs'; import { VFile } from 'vfile'; import type { ISession } from '../session/types.js'; @@ -40,7 +39,6 @@ export function parseMyst( directives: [ cardDirective, ...gridDirectives, - reactiveDirective, proofDirective, ...exerciseDirectives, ...tabDirectives, @@ -49,7 +47,7 @@ export function parseMyst( extensions: { frontmatter: !opts?.ignoreFrontmatter, }, - roles: [reactiveRole, ...(session.plugins?.roles ?? [])], + roles: [...(session.plugins?.roles ?? [])], vfile, }); logMessagesFromVFile(session, vfile);