# JConv - a simple Jupyer notebook converter for Typst
This utility leverages the sourcerer, ansi-render, based, cmarker and showybox packages to convert basic Jupyter notebook files to PDF.

## Usage
First, you need to import the file:
```typst
#import "jconv.typ": jconv
```

To output the notebook's contents as Typst content, you must supply the `jconv` function with a dictionary, like so:
```typst
#jconv(json("Untitled.ipynb"))
```
## Known issues
- Only PNG image output is currently working. Other image types will probably be added in later.
- The cmarker package only converts the Markdown features present in the commonMark spec, which happens to exclude math equations (converting those would be a nightmare, anyway)

## Other packages used in this package
- [sourcerer](https://typst.app/universe/package/sourcerer) - source code renderer
- [ansi-render](https://typst.app/universe/package/ansi-render) - ANSI output renderer
- [based](https://typst.app/universe/package/based) - Base64 conversion of images
- [cmarker](https://typst.app/universe/package/cmarker) - CommonMark renderer
- [showybox](https://typst.app/universe/package/showybox) - Used for boxes around Markdown and output blocks
