typst / typst/typst

Make html/svg optional

Open
#7,590 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

crate feature request
Dominant language
Rust
Stars
56.1k
Forks
1.7k
Avg merge
3d 10h
Merged PRs (30d)
22

Description

Description

We use typst only for PDF but still pay the price of about 50 crates that are needed of mandatory html/svg dependency.

Can you please make html/svg optional (can be still the default but ability to opt out).

Use Case

See above. Only use typst for PDF but need to compile/build/include much more than I need.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating the Rust dependency and feature declarations that pull in HTML and SVG support, then trace how those features reach PDF-only builds. Done means HTML/SVG dependencies can be disabled while the default build remains unchanged and PDF functionality still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.