Skip to content

feat: add Typst support as alternative formula renderer #2183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KHemanthRaju
Copy link

This PR adds support for Typst as an alternative to KaTeX for formula rendering in Slidev.

Features

  • Added a new formulaRenderer option in frontmatter to choose between 'katex' (default) and 'typst'
  • Implemented Typst.ts integration for rendering Typst formulas
  • Added line highlighting support for Typst formulas
  • Created documentation for Typst usage

Usage

To use Typst as the formula renderer, add this to your frontmatter:

---
formulaRenderer: typst
---

Copy link

netlify bot commented May 24, 2025

Deploy Preview for slidev failed.

Name Link
🔨 Latest commit dcd87de
🔍 Latest deploy log https://app.netlify.com/projects/slidev/deploys/6831922d4451b20008d374aa

@antfu
Copy link
Member

antfu commented May 26, 2025

There is already a community addons for that #2179, have you tried it? If it works well I don't think we need to have it builtin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants