-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: syntax highlighting #55
Conversation
Looks good! I think it might be better as a separate function though. |
@nebrelbug and what about #53 ? |
As I'm thinking about this, I don't know if this functionality belongs in npm-to-yarn. If a user wants to display the command in a codeblock, they can add syntax highlighting with shiki themselves pretty easily. |
It would be an add on for the library. If we discontinue this, what about #60 |
I think it might be nice as a separate package to integrate. The rest of #60 looks good to me though. |
Adds syntax highlighting to converted command.
Returns an html string.
API
param:
command : string
param:
theme : "light" | "dark"
with default"light"
Usage
Returns
Closes #49