Skip to content

Commit 7172228

Browse files
committed
removed pending notice
1 parent 7246b9a commit 7172228

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A JavaScript library for converting Markdown to [Typst](https://typst.app/) code.
44

5-
## Try it online (PENDING!!!)
5+
## Try it online
66
See 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\nThis 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

204214
See the [Examples](/examples/README.md) page for basic and advanced examples on how to use the library and all the features it supports.

0 commit comments

Comments
 (0)