Giter Site home page Giter Site logo

typst-as-library's People

Contributors

tfachmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

pachi

typst-as-library's Issues

Add web example for `wasm32` target

For package download and storage, this wrapper currently uses ureq which is NOT wasm compatible (algesten/ureq#667).

Find a way to make it work for both native and wasm32, so we have a minimal example how to use typst as a library in the web

release to crates-io

Hi, thanks for writing this wrapper.
It is much more conventient to use than having to write and maintain the typst world boilerplate code myself.

Are you planning to publish this to crates-io, possibly syncing releases with typst? This way it can be ensured that the sources will always be available. :)

Remove unneeded dependencies before release

Before #3, remove unneeded dependencies such as

# typst rendering (for demonstration purpose)
typst-pdf = "0.11.0"
typst-svg = "0.11.0"

so the boilerplate (library code) is independent of the examples-

Related to #1

Make main.rs an example instead of a binary

Thank you for the nice demonstration of using typst as a library! I've learnt a lot while reading the repo.

My only advice is that it's better not to treat main.rs as a binary because AFAIK binary will get published. One can turn it into an example or a test case instead.

panic when `fonts` dir is not present

The crate currently panics here when no fonts dir is found.

I think it should search the system font paths as well, and maybe if nothing is found error out with a more descriptive message?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.