Skip to content

Comments

feat(chrome-ext): build out support for the online Typst playground#2706

Open
elijah-potter wants to merge 4 commits intomasterfrom
typst
Open

feat(chrome-ext): build out support for the online Typst playground#2706
elijah-potter wants to merge 4 commits intomasterfrom
typst

Conversation

@elijah-potter
Copy link
Collaborator

@elijah-potter elijah-potter commented Feb 12, 2026

Issues

Fixes #2539.

Description

This PR adds support for the online Typst playground, using the existing Typst language support in harper.js. I've added a special case in the content script that correctly mounts the CodeMirror instance to the LintFramework. In addition to that, I've set up the lint framework to automatically infer the markup language via the data-language` attribute.

Demo

image

How Has This Been Tested?

Manually + integration tests.

Checklist

  • I have performed a self-review of my own code
  • I have added tests to cover my changes

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.

Firefox extension not working on Reddit and in the Typst webapp

1 participant