diff --git a/README.md b/README.md index 5d49a9c..b1d3b60 100644 --- a/README.md +++ b/README.md @@ -7,23 +7,38 @@ A Web UI wrapper is available at [https://qwinsi.github.io/tex2typst-webapp/](ht ## Installation +## Installing it in a Node.js project + ```bash npm install tex2typst ``` +## Or just loading it in a web page + +```html + + + +``` + +Replace `0.0.18` with the latest version number in case this README is outdated. + ## Usage ### Basic usage ```javascript -import { parseTex, tex2typst } from 'tex2typst'; +import { tex2typst } from 'tex2typst'; let output = tex2typst("\\zeta(s) = \\sum_{n=1}^{\\infty}\\frac{1}{n^s}"); console.log(output); // zeta(s) = sum_(n = 1)^infinity frac(1, n^s) ``` -### Advanced settings +If you are using the library in a web page via a `