tex2typst 0.2.9 → 0.2.12
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/LICENSE +674 -21
- package/README.md +4 -3
- package/dist/index.js +844 -85
- package/dist/map.d.ts +2 -1
- package/dist/parser.d.ts +7 -1
- package/dist/tex2typst.min.js +1 -1
- package/dist/types.d.ts +0 -4
- package/package.json +4 -3
- package/src/map.ts +783 -32
- package/src/parser.ts +69 -60
- package/src/types.ts +0 -4
- package/src/writer.ts +21 -7
- package/tools/make-symbol-map.py +29 -0
- package/tool/dist/dist/ka.js +0 -13654
- package/tool/dist/ka.js +0 -13634
package/README.md
CHANGED
|
@@ -59,11 +59,12 @@ console.log(output);
|
|
|
59
59
|
|
|
60
60
|
```mermaid
|
|
61
61
|
graph LR
|
|
62
|
-
tex[TeX code] --parser-->
|
|
62
|
+
tex[TeX code] --parser--> tex_ast[TeX AST] --converter--> typst_ast[Typst AST] --writer--> typst[Typst code]
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
- parser: Implemented in class `LatexParser
|
|
66
|
-
-
|
|
65
|
+
- parser: Implemented in class `LatexParser`.
|
|
66
|
+
- converter: Implemented in function `convertTree`.
|
|
67
|
+
- writer: Implemented in class `TypstWriter`.
|
|
67
68
|
|
|
68
69
|
## Contributing
|
|
69
70
|
|