myst-demo 0.5.3 → 0.5.6
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.
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +14 -3
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +14 -3
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAuK1D,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,2CAoMA;AAED,eAAO,MAAM,gBAAgB,EAAE,YAE9B,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -145,9 +145,20 @@ function parse(text, defaultFrontmatter, options) {
|
|
|
145
145
|
.use(mystToTex, { references })
|
|
146
146
|
.stringify(mdast, texFile).result;
|
|
147
147
|
const typstFile = new vfile_1.VFile();
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
let typst;
|
|
149
|
+
try {
|
|
150
|
+
typst = unified()
|
|
151
|
+
.use(mystToTypst)
|
|
152
|
+
.stringify(mdast, typstFile).result;
|
|
153
|
+
}
|
|
154
|
+
catch (error) {
|
|
155
|
+
console.error(error);
|
|
156
|
+
typst = {
|
|
157
|
+
value: `Problem with typst conversion: ${error.message || 'Unknown Error'}`,
|
|
158
|
+
macros: [],
|
|
159
|
+
commands: {},
|
|
160
|
+
};
|
|
161
|
+
}
|
|
151
162
|
const jatsFile = new vfile_1.VFile();
|
|
152
163
|
const jats = mystToJats
|
|
153
164
|
? unified()
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAuK1D,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,2CAoMA;AAED,eAAO,MAAM,gBAAgB,EAAE,YAE9B,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -116,9 +116,20 @@ function parse(text, defaultFrontmatter, options) {
|
|
|
116
116
|
.use(mystToTex, { references })
|
|
117
117
|
.stringify(mdast, texFile).result;
|
|
118
118
|
const typstFile = new VFile();
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
let typst;
|
|
120
|
+
try {
|
|
121
|
+
typst = unified()
|
|
122
|
+
.use(mystToTypst)
|
|
123
|
+
.stringify(mdast, typstFile).result;
|
|
124
|
+
}
|
|
125
|
+
catch (error) {
|
|
126
|
+
console.error(error);
|
|
127
|
+
typst = {
|
|
128
|
+
value: `Problem with typst conversion: ${error.message || 'Unknown Error'}`,
|
|
129
|
+
macros: [],
|
|
130
|
+
commands: {},
|
|
131
|
+
};
|
|
132
|
+
}
|
|
122
133
|
const jatsFile = new VFile();
|
|
123
134
|
const jats = mystToJats
|
|
124
135
|
? unified()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAuK1D,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,2CAoMA;AAED,eAAO,MAAM,gBAAgB,EAAE,YAE9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "myst-demo",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"@heroicons/react": "^2.0.18",
|
|
23
23
|
"classnames": "^2.3.2",
|
|
24
24
|
"js-yaml": "^4.1.0",
|
|
25
|
-
"myst-common": "^1.1.
|
|
26
|
-
"myst-config": "^1.1.
|
|
25
|
+
"myst-common": "^1.1.4",
|
|
26
|
+
"myst-config": "^1.1.4",
|
|
27
27
|
"myst-directives": "^1.0.6",
|
|
28
28
|
"myst-ext-card": "^1.0.2",
|
|
29
29
|
"myst-ext-exercise": "^1.0.2",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"myst-to-docx": "^1.0.3",
|
|
37
37
|
"myst-to-html": "^1.0.6",
|
|
38
38
|
"myst-to-jats": "^1.0.9",
|
|
39
|
-
"myst-to-react": "^0.5.
|
|
39
|
+
"myst-to-react": "^0.5.6",
|
|
40
40
|
"myst-to-tex": "^1.0.4",
|
|
41
41
|
"myst-to-typst": "^0.0.3",
|
|
42
42
|
"myst-transforms": "^1.1.0",
|