Myriad-Dreamin / typst.ts

Run Typst in JavaScriptWorld.
https://myriad-dreamin.github.io/typst.ts
Apache License 2.0
392 stars 22 forks source link

Better Typst.ts (Stage3) #315

Closed Myriad-Dreamin closed 12 months ago

Myriad-Dreamin commented 1 year ago

Stage 1 has been implemented:

Stage 2 has been implemented:

The next primary targets are Proposal 1 and Proposal 10.

Proposal 1, Renderer: the Renderer API

Design a Renderer API for alpha release.

State: The proposal is under draft.

Proposal 10, Compiler+Renderer: All-in-one compiler/renderer

Regarding to complexity of low-level apis, it would be great to providing an all-in-one compiler and renderer package for educational purposing. This is not practical but we can also provide deadly simple APIs like typst::compile.

State: The proposal is under draft.

Proposal 9, Renderer: SEO for Typst documents

Generate site metadata for a typst document. The first launched feature should generate meta title an description for each document, with optional SEO friendly link rendering.

State: exploring SEO with typst-book

Proposal 8, Renderer: Vector Representation for both Canvas and SVG output rendering.

The vector representation is quite a dialect of typst document for both Canvas and SVG, which hides typst details for later works. The previous JSON and TIR formats are still get maintained for running builtin exporters in browser.

State: PoC has been created here.

Proposal 7, Renderer: In-place Replacement Plugin for MathJax Users

Design a plugin to replace the MathJax with Typst.ts, rendering the math and tikz code every side.

State: The proposal is under draft.

Myriad-Dreamin commented 1 year ago

close #105