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

Fix highlight by using Prism instead of PrismAsync #53

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

slhmy
Copy link
Member

@slhmy slhmy commented Mar 9, 2024

We should still track this issue until it's solved.
react-syntax-highlighter/react-syntax-highlighter#263

Using PrismAsync don't seem to be good enough to me, user will get some seconds to load styles with a very wierd output if there network is bad.

I also add a build:mock option so that we can test static build locally with NPM http-server or Ngnix.

Copy link
Contributor

@akamya997 akamya997 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, it provides a better performance.

@akamya997 akamya997 merged commit eb0b5fb into main Mar 9, 2024
1 check passed
@akamya997 akamya997 deleted the slhmy/fix-highlight branch March 9, 2024 04:38
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.

2 participants