-
-
Notifications
You must be signed in to change notification settings - Fork 766
feat(pdf): own Typst wasm compiler (@blocknote/xl-typst-compiler), replacing typst.ts #3020
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
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
ea03336
feat(pdf): own Typst wasm compiler (@blocknote/xl-typst-compiler), re…
YousefED 7b70282
fix(ci): bootstrap rustup on CI runners; merge toBytes/toBlob into toPDF
YousefED f26d19b
perf(pdf): create the result Blob lazily (constructing a Blob copies …
YousefED c1304bb
refactor(pdf): exporter-level font/wasm config, family-consistent toP…
YousefED b9c69b2
fix(ci): resolve the Rust toolchain from the crate dir; build wasm ou…
YousefED 0b1cf5f
docs(pdf): rewrite the PDF page against the exporter-docs conventions
YousefED 5c372a4
docs(skill): dependency-direction, concept containment, hero-snippet,…
YousefED 063bfc4
test(e2e): typst PDF visual baselines; faster and reliable e2e image …
YousefED 0e4bfb7
Merge branch 'playground/typst-pdf-poc' into playground/typst-own-com…
YousefED 9a4c4f9
Merge branch 'playground/typst-pdf-poc' into playground/typst-own-com…
YousefED 50dffc6
fix: address review quick wins (pdf-ua example status, font-less test…
YousefED cfe963f
Merge branch 'playground/typst-pdf-poc' into playground/typst-own-com…
YousefED File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| // The Typst compiler wasm for the docs build (see next.config.ts): the | ||
| // pdf-ua example bundles it via Vite's `?url`; under the docs site the | ||
| // import is aliased here. `new URL(..., import.meta.url)` is Turbopack's | ||
| // static-asset reference: the ~29MB wasm is emitted as a hashed static | ||
| // static-asset reference: the ~25MB wasm is emitted as a hashed static | ||
| // file and served by the site itself - no CDN involved, and the version | ||
| // can't skew from the installed package because it IS the installed file. | ||
| const url = new URL( | ||
| "../node_modules/@myriaddreamin/typst-ts-web-compiler/pkg/typst_ts_web_compiler_bg.wasm", | ||
| "../node_modules/@blocknote/xl-typst-compiler/pkg/blocknote_typst_wasm_bg.wasm", | ||
| import.meta.url, | ||
| ).href; | ||
| export default url; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.