Skip to content

Commit

Permalink
0.3.0-alpha: experimental typst2tex function
Browse files Browse the repository at this point in the history
  • Loading branch information
qwinsi committed Jan 15, 2025
1 parent 1aebd9f commit f11b542
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tex2typst",
"version": "0.2.16",
"version": "0.3.0-alpha",
"description": "JavaScript library for converting TeX code to Typst",
"type": "module",
"main": "dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/tex2typst.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
* This file is the entry point for bundling the .js file for the browser.
*/

import { tex2typst } from './index';
import { tex2typst, typst2tex } from './index';

if(typeof window !== 'undefined') {
(window as any).tex2typst = tex2typst;
(window as any).typst2tex = typst2tex;
}

0 comments on commit f11b542

Please sign in to comment.