tex2typst 0.1.20 → 0.2.0
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 +3 -1
- package/dist/index.js +574 -229
- package/dist/parser.d.ts +18 -5
- package/dist/tex2typst.min.js +1 -1
- package/dist/types.d.ts +10 -5
- package/package.json +1 -1
- package/src/map.ts +4 -0
- package/src/parser.ts +689 -272
- package/src/types.ts +11 -5
- package/src/writer.ts +4 -9
- package/tsconfig.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,8 @@ npm install tex2typst
|
|
|
23
23
|
|
|
24
24
|
Replace `0.1.20` with the latest version number in case this README is outdated.
|
|
25
25
|
|
|
26
|
+
The size of minimized library `tex2typst.min.js` is about 23 KB.
|
|
27
|
+
|
|
26
28
|
## Usage
|
|
27
29
|
|
|
28
30
|
### Basic usage
|
|
@@ -60,7 +62,7 @@ graph LR
|
|
|
60
62
|
tex[TeX code] --parser--> ast[TeX AST] --writer--> typst[Typst code]
|
|
61
63
|
```
|
|
62
64
|
|
|
63
|
-
- parser: Implemented in
|
|
65
|
+
- parser: Implemented in class `LatexParser()`.
|
|
64
66
|
- writer: Implemented in class `TypstWriter()`
|
|
65
67
|
|
|
66
68
|
## Contributing
|