Skip to content
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

Publish WASM version as a deno module? #1

Open
matklad opened this issue Nov 3, 2022 · 2 comments
Open

Publish WASM version as a deno module? #1

matklad opened this issue Nov 3, 2022 · 2 comments

Comments

@matklad
Copy link

matklad commented Nov 3, 2022

Deno currently lacks a production grade syntax highlighting library:

https://deno.land/x?query=highlight

Given that syntect-js is dependency free, publishing it (the wasm flavor) to Deno should be straightforward, and would cover this corner of the ecosystem quite nicely.

@matklad
Copy link
Author

matklad commented Nov 3, 2022

note that this'll require the ugly "smuggle WASM as a base64-encoded string with the source code":

https://github.com/b-fuze/deno-dom/blob/e18ab07fd6e23f1e32ffd77fb4c0f92fadb81b87/build/deno-wasm/deno-wasm.js#L173-L178

@Menci
Copy link
Owner

Menci commented Nov 4, 2022

Thanks. I'll check it.

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

No branches or pull requests

2 participants