File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33A JavaScript library for converting Markdown to [ Typst] ( https://typst.app/ ) code.
44
5- ## Try it online (PENDING!!!)
5+ ## Try it online
66See an example use case in this demo website: [ https://Mapaor.github.io/markdown2typst ] ( https://Mapaor.github.io/markdown2typst ) .
77
88## Supported Markdown features
@@ -199,6 +199,16 @@ console.log(typst);
199199 </script >
200200```
201201
202+ #### Or in a javascript file
203+ ``` js
204+ import markdown2typst from ' https://cdn.jsdelivr.net/npm/markdown2typst@latest/dist/markdown2typst.min.js' ;
205+
206+ const markdown = ' # Hello Typst\n\n This is a **test**.' ;
207+ const typst = markdown2typst (markdown);
208+ console .log (typst);
209+ ```
210+
211+ Which is what the [ demo] ( ./demo/ ) uses.
202212## Examples
203213
204214See the [ Examples] ( /examples/README.md ) page for basic and advanced examples on how to use the library and all the features it supports.
You can’t perform that action at this time.
0 commit comments