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

Request to Add "node" as an Alias for JavaScript in Code Block Highlighting #8008

Closed
see-more opened this issue Aug 17, 2024 · 1 comment
Closed

Comments

@see-more
Copy link

see-more commented Aug 17, 2024

Currently, when using code blocks in Affine, we can specify the language to get syntax highlighting. For JavaScript, we use js or javascript. However, it would be beneficial to add node as an alias for JavaScript,
image

@fourdim
Copy link
Contributor

fourdim commented Oct 9, 2024

No, just like what antfu is mentioned in the shikijs, nodejs is a runtime rather than a language.

There can be many runtimes for a single language and there can be runtimes that can run multiple languages.
If we are following the same logic and add all of these to BlockSuite, it will be a mess.

@fourdim fourdim closed this as not planned Won't fix, can't repro, duplicate, stale Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants