mathpix-markdown-it 2.0.24 → 2.0.25
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/README.md +1 -0
- package/es5/bundle.js +1 -1
- package/es5/context-menu.js +1 -1
- package/es5/index.js +7 -7
- package/lib/contex-menu/menu/consts.d.ts +1 -0
- package/lib/contex-menu/menu/consts.js +2 -0
- package/lib/contex-menu/menu/consts.js.map +1 -1
- package/lib/contex-menu/menu/menu-item.js +4 -0
- package/lib/contex-menu/menu/menu-item.js.map +1 -1
- package/lib/helpers/parse-mmd-element.js +2 -2
- package/lib/helpers/parse-mmd-element.js.map +1 -1
- package/lib/markdown/common/convert-math-to-html.js +2 -0
- package/lib/markdown/common/convert-math-to-html.js.map +1 -1
- package/lib/markdown/common/render-table-cell-content.js +2 -2
- package/lib/markdown/md-renderer-rules/render-tabular.js.map +1 -1
- package/lib/mathjax/index.d.ts +6 -0
- package/lib/mathjax/index.js +35 -16
- package/lib/mathjax/index.js.map +1 -1
- package/lib/mathjax/serialized-ascii/common.d.ts +6 -4
- package/lib/mathjax/serialized-ascii/common.js +26 -14
- package/lib/mathjax/serialized-ascii/common.js.map +1 -1
- package/lib/mathjax/serialized-ascii/handlers.d.ts +9 -3
- package/lib/mathjax/serialized-ascii/handlers.js +673 -448
- package/lib/mathjax/serialized-ascii/handlers.js.map +1 -1
- package/lib/mathjax/serialized-ascii/helperA.d.ts +413 -0
- package/lib/mathjax/serialized-ascii/helperA.js +25 -2
- package/lib/mathjax/serialized-ascii/helperA.js.map +1 -1
- package/lib/mathjax/serialized-ascii/helperLinear.d.ts +32 -0
- package/lib/mathjax/serialized-ascii/helperLinear.js +216 -0
- package/lib/mathjax/serialized-ascii/helperLinear.js.map +1 -0
- package/lib/mathjax/serialized-ascii/index.js +130 -96
- package/lib/mathjax/serialized-ascii/index.js.map +1 -1
- package/lib/mathjax/serialized-ascii/node-utils.d.ts +2 -0
- package/lib/mathjax/serialized-ascii/node-utils.js +12 -0
- package/lib/mathjax/serialized-ascii/node-utils.js.map +1 -0
- package/lib/mathpix-markdown-model/index.d.ts +1 -0
- package/lib/mathpix-markdown-model/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -17,6 +17,7 @@ export declare const AMsymbols: ({
|
|
|
17
17
|
stretchy?: undefined;
|
|
18
18
|
func?: undefined;
|
|
19
19
|
rewriteleftright?: undefined;
|
|
20
|
+
output_linear?: undefined;
|
|
20
21
|
atname?: undefined;
|
|
21
22
|
atval?: undefined;
|
|
22
23
|
codes?: undefined;
|
|
@@ -32,6 +33,7 @@ export declare const AMsymbols: ({
|
|
|
32
33
|
stretchy?: undefined;
|
|
33
34
|
func?: undefined;
|
|
34
35
|
rewriteleftright?: undefined;
|
|
36
|
+
output_linear?: undefined;
|
|
35
37
|
atname?: undefined;
|
|
36
38
|
atval?: undefined;
|
|
37
39
|
codes?: undefined;
|
|
@@ -47,6 +49,7 @@ export declare const AMsymbols: ({
|
|
|
47
49
|
stretchy?: undefined;
|
|
48
50
|
func?: undefined;
|
|
49
51
|
rewriteleftright?: undefined;
|
|
52
|
+
output_linear?: undefined;
|
|
50
53
|
atname?: undefined;
|
|
51
54
|
atval?: undefined;
|
|
52
55
|
codes?: undefined;
|
|
@@ -62,6 +65,7 @@ export declare const AMsymbols: ({
|
|
|
62
65
|
invisible?: undefined;
|
|
63
66
|
func?: undefined;
|
|
64
67
|
rewriteleftright?: undefined;
|
|
68
|
+
output_linear?: undefined;
|
|
65
69
|
atname?: undefined;
|
|
66
70
|
atval?: undefined;
|
|
67
71
|
codes?: undefined;
|
|
@@ -77,6 +81,7 @@ export declare const AMsymbols: ({
|
|
|
77
81
|
acc?: undefined;
|
|
78
82
|
stretchy?: undefined;
|
|
79
83
|
rewriteleftright?: undefined;
|
|
84
|
+
output_linear?: undefined;
|
|
80
85
|
atname?: undefined;
|
|
81
86
|
atval?: undefined;
|
|
82
87
|
codes?: undefined;
|
|
@@ -92,6 +97,7 @@ export declare const AMsymbols: ({
|
|
|
92
97
|
acc?: undefined;
|
|
93
98
|
stretchy?: undefined;
|
|
94
99
|
func?: undefined;
|
|
100
|
+
output_linear?: undefined;
|
|
95
101
|
atname?: undefined;
|
|
96
102
|
atval?: undefined;
|
|
97
103
|
codes?: undefined;
|
|
@@ -107,6 +113,7 @@ export declare const AMsymbols: ({
|
|
|
107
113
|
invisible?: undefined;
|
|
108
114
|
func?: undefined;
|
|
109
115
|
rewriteleftright?: undefined;
|
|
116
|
+
output_linear?: undefined;
|
|
110
117
|
atname?: undefined;
|
|
111
118
|
atval?: undefined;
|
|
112
119
|
codes?: undefined;
|
|
@@ -122,6 +129,23 @@ export declare const AMsymbols: ({
|
|
|
122
129
|
stretchy?: undefined;
|
|
123
130
|
func?: undefined;
|
|
124
131
|
rewriteleftright?: undefined;
|
|
132
|
+
output_linear?: undefined;
|
|
133
|
+
atname?: undefined;
|
|
134
|
+
atval?: undefined;
|
|
135
|
+
codes?: undefined;
|
|
136
|
+
} | {
|
|
137
|
+
input: string;
|
|
138
|
+
tag: string;
|
|
139
|
+
output: string;
|
|
140
|
+
output_linear: string;
|
|
141
|
+
tex: string;
|
|
142
|
+
ttype: number;
|
|
143
|
+
symbolType?: undefined;
|
|
144
|
+
invisible?: undefined;
|
|
145
|
+
acc?: undefined;
|
|
146
|
+
stretchy?: undefined;
|
|
147
|
+
func?: undefined;
|
|
148
|
+
rewriteleftright?: undefined;
|
|
125
149
|
atname?: undefined;
|
|
126
150
|
atval?: undefined;
|
|
127
151
|
codes?: undefined;
|
|
@@ -137,6 +161,7 @@ export declare const AMsymbols: ({
|
|
|
137
161
|
stretchy?: undefined;
|
|
138
162
|
func?: undefined;
|
|
139
163
|
rewriteleftright?: undefined;
|
|
164
|
+
output_linear?: undefined;
|
|
140
165
|
atname?: undefined;
|
|
141
166
|
atval?: undefined;
|
|
142
167
|
codes?: undefined;
|
|
@@ -154,6 +179,7 @@ export declare const AMsymbols: ({
|
|
|
154
179
|
stretchy?: undefined;
|
|
155
180
|
func?: undefined;
|
|
156
181
|
rewriteleftright?: undefined;
|
|
182
|
+
output_linear?: undefined;
|
|
157
183
|
codes?: undefined;
|
|
158
184
|
} | {
|
|
159
185
|
input: string;
|
|
@@ -170,6 +196,393 @@ export declare const AMsymbols: ({
|
|
|
170
196
|
stretchy?: undefined;
|
|
171
197
|
func?: undefined;
|
|
172
198
|
rewriteleftright?: undefined;
|
|
199
|
+
output_linear?: undefined;
|
|
173
200
|
})[];
|
|
174
201
|
export declare const getFunctions: () => Array<string>;
|
|
175
202
|
export declare const regExpIsFunction: RegExp;
|
|
203
|
+
export declare const findAmSymbolByTag: (tag: string, output: string) => {
|
|
204
|
+
input: string;
|
|
205
|
+
tag: string;
|
|
206
|
+
output: string;
|
|
207
|
+
tex: string;
|
|
208
|
+
ttype: number;
|
|
209
|
+
symbolType?: undefined;
|
|
210
|
+
invisible?: undefined;
|
|
211
|
+
acc?: undefined;
|
|
212
|
+
stretchy?: undefined;
|
|
213
|
+
func?: undefined;
|
|
214
|
+
rewriteleftright?: undefined;
|
|
215
|
+
output_linear?: undefined;
|
|
216
|
+
atname?: undefined;
|
|
217
|
+
atval?: undefined;
|
|
218
|
+
codes?: undefined;
|
|
219
|
+
} | {
|
|
220
|
+
input: string;
|
|
221
|
+
tag: string;
|
|
222
|
+
output: string;
|
|
223
|
+
tex: string;
|
|
224
|
+
ttype: number;
|
|
225
|
+
symbolType: eSymbolType;
|
|
226
|
+
invisible?: undefined;
|
|
227
|
+
acc?: undefined;
|
|
228
|
+
stretchy?: undefined;
|
|
229
|
+
func?: undefined;
|
|
230
|
+
rewriteleftright?: undefined;
|
|
231
|
+
output_linear?: undefined;
|
|
232
|
+
atname?: undefined;
|
|
233
|
+
atval?: undefined;
|
|
234
|
+
codes?: undefined;
|
|
235
|
+
} | {
|
|
236
|
+
input: string;
|
|
237
|
+
tag: string;
|
|
238
|
+
output: string;
|
|
239
|
+
tex: any;
|
|
240
|
+
ttype: number;
|
|
241
|
+
invisible: boolean;
|
|
242
|
+
symbolType?: undefined;
|
|
243
|
+
acc?: undefined;
|
|
244
|
+
stretchy?: undefined;
|
|
245
|
+
func?: undefined;
|
|
246
|
+
rewriteleftright?: undefined;
|
|
247
|
+
output_linear?: undefined;
|
|
248
|
+
atname?: undefined;
|
|
249
|
+
atval?: undefined;
|
|
250
|
+
codes?: undefined;
|
|
251
|
+
} | {
|
|
252
|
+
input: string;
|
|
253
|
+
tag: string;
|
|
254
|
+
output: string;
|
|
255
|
+
tex: any;
|
|
256
|
+
ttype: number;
|
|
257
|
+
acc: boolean;
|
|
258
|
+
stretchy: boolean;
|
|
259
|
+
symbolType: eSymbolType;
|
|
260
|
+
invisible?: undefined;
|
|
261
|
+
func?: undefined;
|
|
262
|
+
rewriteleftright?: undefined;
|
|
263
|
+
output_linear?: undefined;
|
|
264
|
+
atname?: undefined;
|
|
265
|
+
atval?: undefined;
|
|
266
|
+
codes?: undefined;
|
|
267
|
+
} | {
|
|
268
|
+
input: string;
|
|
269
|
+
tag: string;
|
|
270
|
+
output: string;
|
|
271
|
+
tex: any;
|
|
272
|
+
ttype: number;
|
|
273
|
+
func: boolean;
|
|
274
|
+
symbolType?: undefined;
|
|
275
|
+
invisible?: undefined;
|
|
276
|
+
acc?: undefined;
|
|
277
|
+
stretchy?: undefined;
|
|
278
|
+
rewriteleftright?: undefined;
|
|
279
|
+
output_linear?: undefined;
|
|
280
|
+
atname?: undefined;
|
|
281
|
+
atval?: undefined;
|
|
282
|
+
codes?: undefined;
|
|
283
|
+
} | {
|
|
284
|
+
input: string;
|
|
285
|
+
tag: string;
|
|
286
|
+
output: string;
|
|
287
|
+
tex: any;
|
|
288
|
+
ttype: number;
|
|
289
|
+
rewriteleftright: string[];
|
|
290
|
+
symbolType?: undefined;
|
|
291
|
+
invisible?: undefined;
|
|
292
|
+
acc?: undefined;
|
|
293
|
+
stretchy?: undefined;
|
|
294
|
+
func?: undefined;
|
|
295
|
+
output_linear?: undefined;
|
|
296
|
+
atname?: undefined;
|
|
297
|
+
atval?: undefined;
|
|
298
|
+
codes?: undefined;
|
|
299
|
+
} | {
|
|
300
|
+
input: string;
|
|
301
|
+
tag: string;
|
|
302
|
+
output: string;
|
|
303
|
+
tex: any;
|
|
304
|
+
ttype: number;
|
|
305
|
+
acc: boolean;
|
|
306
|
+
stretchy: boolean;
|
|
307
|
+
symbolType?: undefined;
|
|
308
|
+
invisible?: undefined;
|
|
309
|
+
func?: undefined;
|
|
310
|
+
rewriteleftright?: undefined;
|
|
311
|
+
output_linear?: undefined;
|
|
312
|
+
atname?: undefined;
|
|
313
|
+
atval?: undefined;
|
|
314
|
+
codes?: undefined;
|
|
315
|
+
} | {
|
|
316
|
+
input: string;
|
|
317
|
+
tag: string;
|
|
318
|
+
output: string;
|
|
319
|
+
tex: string;
|
|
320
|
+
ttype: number;
|
|
321
|
+
acc: boolean;
|
|
322
|
+
symbolType?: undefined;
|
|
323
|
+
invisible?: undefined;
|
|
324
|
+
stretchy?: undefined;
|
|
325
|
+
func?: undefined;
|
|
326
|
+
rewriteleftright?: undefined;
|
|
327
|
+
output_linear?: undefined;
|
|
328
|
+
atname?: undefined;
|
|
329
|
+
atval?: undefined;
|
|
330
|
+
codes?: undefined;
|
|
331
|
+
} | {
|
|
332
|
+
input: string;
|
|
333
|
+
tag: string;
|
|
334
|
+
output: string;
|
|
335
|
+
output_linear: string;
|
|
336
|
+
tex: string;
|
|
337
|
+
ttype: number;
|
|
338
|
+
symbolType?: undefined;
|
|
339
|
+
invisible?: undefined;
|
|
340
|
+
acc?: undefined;
|
|
341
|
+
stretchy?: undefined;
|
|
342
|
+
func?: undefined;
|
|
343
|
+
rewriteleftright?: undefined;
|
|
344
|
+
atname?: undefined;
|
|
345
|
+
atval?: undefined;
|
|
346
|
+
codes?: undefined;
|
|
347
|
+
} | {
|
|
348
|
+
input: string;
|
|
349
|
+
tag: string;
|
|
350
|
+
ttype: number;
|
|
351
|
+
output?: undefined;
|
|
352
|
+
tex?: undefined;
|
|
353
|
+
symbolType?: undefined;
|
|
354
|
+
invisible?: undefined;
|
|
355
|
+
acc?: undefined;
|
|
356
|
+
stretchy?: undefined;
|
|
357
|
+
func?: undefined;
|
|
358
|
+
rewriteleftright?: undefined;
|
|
359
|
+
output_linear?: undefined;
|
|
360
|
+
atname?: undefined;
|
|
361
|
+
atval?: undefined;
|
|
362
|
+
codes?: undefined;
|
|
363
|
+
} | {
|
|
364
|
+
input: string;
|
|
365
|
+
tag: string;
|
|
366
|
+
atname: string;
|
|
367
|
+
atval: string;
|
|
368
|
+
output: string;
|
|
369
|
+
tex: any;
|
|
370
|
+
ttype: number;
|
|
371
|
+
symbolType?: undefined;
|
|
372
|
+
invisible?: undefined;
|
|
373
|
+
acc?: undefined;
|
|
374
|
+
stretchy?: undefined;
|
|
375
|
+
func?: undefined;
|
|
376
|
+
rewriteleftright?: undefined;
|
|
377
|
+
output_linear?: undefined;
|
|
378
|
+
codes?: undefined;
|
|
379
|
+
} | {
|
|
380
|
+
input: string;
|
|
381
|
+
tag: string;
|
|
382
|
+
atname: string;
|
|
383
|
+
atval: string;
|
|
384
|
+
output: string;
|
|
385
|
+
tex: any;
|
|
386
|
+
ttype: number;
|
|
387
|
+
codes: string[];
|
|
388
|
+
symbolType?: undefined;
|
|
389
|
+
invisible?: undefined;
|
|
390
|
+
acc?: undefined;
|
|
391
|
+
stretchy?: undefined;
|
|
392
|
+
func?: undefined;
|
|
393
|
+
rewriteleftright?: undefined;
|
|
394
|
+
output_linear?: undefined;
|
|
395
|
+
};
|
|
396
|
+
export declare const findAmSymbolByTagStretchy: (tag: string, output: string) => {
|
|
397
|
+
input: string;
|
|
398
|
+
tag: string;
|
|
399
|
+
output: string;
|
|
400
|
+
tex: string;
|
|
401
|
+
ttype: number;
|
|
402
|
+
symbolType?: undefined;
|
|
403
|
+
invisible?: undefined;
|
|
404
|
+
acc?: undefined;
|
|
405
|
+
stretchy?: undefined;
|
|
406
|
+
func?: undefined;
|
|
407
|
+
rewriteleftright?: undefined;
|
|
408
|
+
output_linear?: undefined;
|
|
409
|
+
atname?: undefined;
|
|
410
|
+
atval?: undefined;
|
|
411
|
+
codes?: undefined;
|
|
412
|
+
} | {
|
|
413
|
+
input: string;
|
|
414
|
+
tag: string;
|
|
415
|
+
output: string;
|
|
416
|
+
tex: string;
|
|
417
|
+
ttype: number;
|
|
418
|
+
symbolType: eSymbolType;
|
|
419
|
+
invisible?: undefined;
|
|
420
|
+
acc?: undefined;
|
|
421
|
+
stretchy?: undefined;
|
|
422
|
+
func?: undefined;
|
|
423
|
+
rewriteleftright?: undefined;
|
|
424
|
+
output_linear?: undefined;
|
|
425
|
+
atname?: undefined;
|
|
426
|
+
atval?: undefined;
|
|
427
|
+
codes?: undefined;
|
|
428
|
+
} | {
|
|
429
|
+
input: string;
|
|
430
|
+
tag: string;
|
|
431
|
+
output: string;
|
|
432
|
+
tex: any;
|
|
433
|
+
ttype: number;
|
|
434
|
+
invisible: boolean;
|
|
435
|
+
symbolType?: undefined;
|
|
436
|
+
acc?: undefined;
|
|
437
|
+
stretchy?: undefined;
|
|
438
|
+
func?: undefined;
|
|
439
|
+
rewriteleftright?: undefined;
|
|
440
|
+
output_linear?: undefined;
|
|
441
|
+
atname?: undefined;
|
|
442
|
+
atval?: undefined;
|
|
443
|
+
codes?: undefined;
|
|
444
|
+
} | {
|
|
445
|
+
input: string;
|
|
446
|
+
tag: string;
|
|
447
|
+
output: string;
|
|
448
|
+
tex: any;
|
|
449
|
+
ttype: number;
|
|
450
|
+
acc: boolean;
|
|
451
|
+
stretchy: boolean;
|
|
452
|
+
symbolType: eSymbolType;
|
|
453
|
+
invisible?: undefined;
|
|
454
|
+
func?: undefined;
|
|
455
|
+
rewriteleftright?: undefined;
|
|
456
|
+
output_linear?: undefined;
|
|
457
|
+
atname?: undefined;
|
|
458
|
+
atval?: undefined;
|
|
459
|
+
codes?: undefined;
|
|
460
|
+
} | {
|
|
461
|
+
input: string;
|
|
462
|
+
tag: string;
|
|
463
|
+
output: string;
|
|
464
|
+
tex: any;
|
|
465
|
+
ttype: number;
|
|
466
|
+
func: boolean;
|
|
467
|
+
symbolType?: undefined;
|
|
468
|
+
invisible?: undefined;
|
|
469
|
+
acc?: undefined;
|
|
470
|
+
stretchy?: undefined;
|
|
471
|
+
rewriteleftright?: undefined;
|
|
472
|
+
output_linear?: undefined;
|
|
473
|
+
atname?: undefined;
|
|
474
|
+
atval?: undefined;
|
|
475
|
+
codes?: undefined;
|
|
476
|
+
} | {
|
|
477
|
+
input: string;
|
|
478
|
+
tag: string;
|
|
479
|
+
output: string;
|
|
480
|
+
tex: any;
|
|
481
|
+
ttype: number;
|
|
482
|
+
rewriteleftright: string[];
|
|
483
|
+
symbolType?: undefined;
|
|
484
|
+
invisible?: undefined;
|
|
485
|
+
acc?: undefined;
|
|
486
|
+
stretchy?: undefined;
|
|
487
|
+
func?: undefined;
|
|
488
|
+
output_linear?: undefined;
|
|
489
|
+
atname?: undefined;
|
|
490
|
+
atval?: undefined;
|
|
491
|
+
codes?: undefined;
|
|
492
|
+
} | {
|
|
493
|
+
input: string;
|
|
494
|
+
tag: string;
|
|
495
|
+
output: string;
|
|
496
|
+
tex: any;
|
|
497
|
+
ttype: number;
|
|
498
|
+
acc: boolean;
|
|
499
|
+
stretchy: boolean;
|
|
500
|
+
symbolType?: undefined;
|
|
501
|
+
invisible?: undefined;
|
|
502
|
+
func?: undefined;
|
|
503
|
+
rewriteleftright?: undefined;
|
|
504
|
+
output_linear?: undefined;
|
|
505
|
+
atname?: undefined;
|
|
506
|
+
atval?: undefined;
|
|
507
|
+
codes?: undefined;
|
|
508
|
+
} | {
|
|
509
|
+
input: string;
|
|
510
|
+
tag: string;
|
|
511
|
+
output: string;
|
|
512
|
+
tex: string;
|
|
513
|
+
ttype: number;
|
|
514
|
+
acc: boolean;
|
|
515
|
+
symbolType?: undefined;
|
|
516
|
+
invisible?: undefined;
|
|
517
|
+
stretchy?: undefined;
|
|
518
|
+
func?: undefined;
|
|
519
|
+
rewriteleftright?: undefined;
|
|
520
|
+
output_linear?: undefined;
|
|
521
|
+
atname?: undefined;
|
|
522
|
+
atval?: undefined;
|
|
523
|
+
codes?: undefined;
|
|
524
|
+
} | {
|
|
525
|
+
input: string;
|
|
526
|
+
tag: string;
|
|
527
|
+
output: string;
|
|
528
|
+
output_linear: string;
|
|
529
|
+
tex: string;
|
|
530
|
+
ttype: number;
|
|
531
|
+
symbolType?: undefined;
|
|
532
|
+
invisible?: undefined;
|
|
533
|
+
acc?: undefined;
|
|
534
|
+
stretchy?: undefined;
|
|
535
|
+
func?: undefined;
|
|
536
|
+
rewriteleftright?: undefined;
|
|
537
|
+
atname?: undefined;
|
|
538
|
+
atval?: undefined;
|
|
539
|
+
codes?: undefined;
|
|
540
|
+
} | {
|
|
541
|
+
input: string;
|
|
542
|
+
tag: string;
|
|
543
|
+
ttype: number;
|
|
544
|
+
output?: undefined;
|
|
545
|
+
tex?: undefined;
|
|
546
|
+
symbolType?: undefined;
|
|
547
|
+
invisible?: undefined;
|
|
548
|
+
acc?: undefined;
|
|
549
|
+
stretchy?: undefined;
|
|
550
|
+
func?: undefined;
|
|
551
|
+
rewriteleftright?: undefined;
|
|
552
|
+
output_linear?: undefined;
|
|
553
|
+
atname?: undefined;
|
|
554
|
+
atval?: undefined;
|
|
555
|
+
codes?: undefined;
|
|
556
|
+
} | {
|
|
557
|
+
input: string;
|
|
558
|
+
tag: string;
|
|
559
|
+
atname: string;
|
|
560
|
+
atval: string;
|
|
561
|
+
output: string;
|
|
562
|
+
tex: any;
|
|
563
|
+
ttype: number;
|
|
564
|
+
symbolType?: undefined;
|
|
565
|
+
invisible?: undefined;
|
|
566
|
+
acc?: undefined;
|
|
567
|
+
stretchy?: undefined;
|
|
568
|
+
func?: undefined;
|
|
569
|
+
rewriteleftright?: undefined;
|
|
570
|
+
output_linear?: undefined;
|
|
571
|
+
codes?: undefined;
|
|
572
|
+
} | {
|
|
573
|
+
input: string;
|
|
574
|
+
tag: string;
|
|
575
|
+
atname: string;
|
|
576
|
+
atval: string;
|
|
577
|
+
output: string;
|
|
578
|
+
tex: any;
|
|
579
|
+
ttype: number;
|
|
580
|
+
codes: string[];
|
|
581
|
+
symbolType?: undefined;
|
|
582
|
+
invisible?: undefined;
|
|
583
|
+
acc?: undefined;
|
|
584
|
+
stretchy?: undefined;
|
|
585
|
+
func?: undefined;
|
|
586
|
+
rewriteleftright?: undefined;
|
|
587
|
+
output_linear?: undefined;
|
|
588
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.regExpIsFunction = exports.getFunctions = exports.AMsymbols = exports.eSymbolType = void 0;
|
|
3
|
+
exports.findAmSymbolByTagStretchy = exports.findAmSymbolByTag = exports.regExpIsFunction = exports.getFunctions = exports.AMsymbols = exports.eSymbolType = void 0;
|
|
4
4
|
var CONST = 0, UNARY = 1, BINARY = 2, INFIX = 3, LEFTBRACKET = 4, RIGHTBRACKET = 5, SPACE = 6, UNDEROVER = 7, DEFINITION = 8, LEFTRIGHT = 9, /*TEXT = 10, BIG = 11, LONG = 12, STRETCHY = 13,
|
|
5
5
|
MATRIX = 14,*/ UNARYUNDEROVER = 15; // token types
|
|
6
6
|
var eSymbolType;
|
|
@@ -275,7 +275,8 @@ exports.AMsymbols = [
|
|
|
275
275
|
{ input: "bar", tag: "mover", output: "―", tex: "overline", ttype: UNARY, acc: true },
|
|
276
276
|
{ input: "bar", tag: "mover", output: "macr", tex: "bar", ttype: CONST },
|
|
277
277
|
{ input: "vec", tag: "mover", output: "\u2192", tex: null, ttype: UNARY, acc: true },
|
|
278
|
-
{ input: "vec", tag: "mover", output: "rarr", tex: "vec", ttype: CONST },
|
|
278
|
+
{ input: "vec", tag: "mover", output: "rarr", output_linear: "\u2192", tex: "vec", ttype: CONST },
|
|
279
|
+
{ input: "", tag: "mover", output: "larr", output_linear: "\u2190", tex: "overleftarrow", ttype: CONST },
|
|
279
280
|
{ input: "dot", tag: "mover", output: ".", tex: null, ttype: UNARY, acc: true },
|
|
280
281
|
{ input: "ddot", tag: "mover", output: "..", tex: null, ttype: UNARY, acc: true },
|
|
281
282
|
{ input: "ul", tag: "munder", output: "\u0332", tex: "underline", ttype: UNARY, acc: true },
|
|
@@ -310,4 +311,26 @@ var getFunctions = function () {
|
|
|
310
311
|
exports.getFunctions = getFunctions;
|
|
311
312
|
var listOfFunctions = (0, exports.getFunctions)();
|
|
312
313
|
exports.regExpIsFunction = new RegExp('(?:' + listOfFunctions.join('|') + ')$');
|
|
314
|
+
var findAmSymbolByTag = function (tag, output) {
|
|
315
|
+
return exports.AMsymbols.find(function (item) {
|
|
316
|
+
if (tag === 'mo' || tag === 'mi') {
|
|
317
|
+
return (item.tag === 'mo' || item.tag === 'mi') && item.output === output;
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
return item.tag === tag && item.output === output;
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
};
|
|
324
|
+
exports.findAmSymbolByTag = findAmSymbolByTag;
|
|
325
|
+
var findAmSymbolByTagStretchy = function (tag, output) {
|
|
326
|
+
return exports.AMsymbols.find(function (item) {
|
|
327
|
+
if (tag === 'mo' || tag === 'mi') {
|
|
328
|
+
return (item.tag === 'mo' || item.tag === 'mi') && item.output === output && item.stretchy;
|
|
329
|
+
}
|
|
330
|
+
else {
|
|
331
|
+
return item.tag === tag && item.output === output && item.stretchy;
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
};
|
|
335
|
+
exports.findAmSymbolByTagStretchy = findAmSymbolByTagStretchy;
|
|
313
336
|
//# sourceMappingURL=helperA.js.map
|