myst-demo 0.8.3 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AAiBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAgN1D,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,GACV,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,eAAe,CAAA;KAAE,KAAK,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;IAC7E,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CA6PA;AAED,eAAO,MAAM,gBAAgB,EAAE,YAE9B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AAiBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAoN1D,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,GACV,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,eAAe,CAAA;KAAE,KAAK,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;IAC7E,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CA6PA;AAED,eAAO,MAAM,gBAAgB,EAAE,YAE9B,CAAC"}
package/dist/index.js CHANGED
@@ -77,7 +77,7 @@ function parse(text, defaultFrontmatter, options) {
77
77
  const { visit } = yield import('unist-util-visit');
78
78
  const { unified } = yield import('unified');
79
79
  const { mystParse } = yield import('myst-parser');
80
- const { mathPlugin, footnotesPlugin, keysPlugin, basicTransformationsPlugin, enumerateTargetsPlugin, resolveReferencesPlugin, WikiTransformer, GithubTransformer, DOITransformer, RRIDTransformer, linksPlugin, ReferenceState, abbreviationPlugin, glossaryPlugin, joinGatesPlugin, } = yield import('myst-transforms');
80
+ const { mathPlugin, footnotesPlugin, keysPlugin, htmlPlugin, reconstructHtmlPlugin, basicTransformationsPlugin, enumerateTargetsPlugin, resolveReferencesPlugin, WikiTransformer, GithubTransformer, DOITransformer, RRIDTransformer, linksPlugin, ReferenceState, abbreviationPlugin, glossaryPlugin, joinGatesPlugin, } = yield import('myst-transforms');
81
81
  const { default: mystToTex } = yield import('myst-to-tex');
82
82
  const { default: mystToTypst } = yield import('myst-to-typst');
83
83
  const { default: mystToJats } = yield import('myst-to-jats').catch(() => ({ default: null }));
@@ -132,6 +132,8 @@ function parse(text, defaultFrontmatter, options) {
132
132
  }
133
133
  });
134
134
  unified()
135
+ .use(reconstructHtmlPlugin) // We need to group and link the HTML first
136
+ .use(htmlPlugin) // Some of the HTML plugins need to operate on the transformed html, e.g. figure caption transforms
135
137
  .use(basicTransformationsPlugin, { parser: parseMyst })
136
138
  .use(mathPlugin, { macros: (_b = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.math) !== null && _b !== void 0 ? _b : {} }) // This must happen before enumeration, as it can add labels
137
139
  .use(glossaryPlugin) // This should be before the enumerate plugins
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myst-demo",
3
- "version": "0.8.3",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "exports": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -23,24 +23,24 @@
23
23
  "@heroicons/react": "^2.0.18",
24
24
  "classnames": "^2.3.2",
25
25
  "js-yaml": "^4.1.0",
26
- "myst-common": "^1.1.35",
27
- "myst-config": "^1.1.35",
28
- "myst-directives": "^1.2.3",
29
- "myst-ext-card": "^1.0.5",
30
- "myst-ext-exercise": "^1.0.5",
31
- "myst-ext-grid": "^1.0.5",
32
- "myst-ext-proof": "^1.0.8",
33
- "myst-ext-tabs": "^1.0.5",
34
- "myst-frontmatter": "^1.1.35",
35
- "myst-parser": "^1.2.3",
26
+ "myst-common": "^1.4.0",
27
+ "myst-config": "^1.4.0",
28
+ "myst-directives": "^1.4.2",
29
+ "myst-ext-card": "^1.0.6",
30
+ "myst-ext-exercise": "^1.0.6",
31
+ "myst-ext-grid": "^1.0.6",
32
+ "myst-ext-proof": "^1.0.9",
33
+ "myst-ext-tabs": "^1.0.6",
34
+ "myst-frontmatter": "^1.4.0",
35
+ "myst-parser": "^1.4.2",
36
36
  "myst-spec": "^0.0.5",
37
- "myst-to-docx": "^1.0.9",
38
- "myst-to-html": "^1.2.3",
39
- "myst-to-jats": "^1.0.24",
40
- "myst-to-react": "^0.8.3",
41
- "myst-to-tex": "^1.0.25",
42
- "myst-to-typst": "^0.0.13",
43
- "myst-transforms": "^1.3.4",
37
+ "myst-to-docx": "^1.0.10",
38
+ "myst-to-html": "^1.4.2",
39
+ "myst-to-jats": "^1.0.26",
40
+ "myst-to-react": "^0.9.1",
41
+ "myst-to-tex": "^1.0.28",
42
+ "myst-to-typst": "^0.0.16",
43
+ "myst-transforms": "^1.3.11",
44
44
  "unified": "^10.1.2",
45
45
  "unist-util-remove": "^4.0.0",
46
46
  "unist-util-visit": "^4.1.2",