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

[Feature Request] Option to use custom highlighters #60

Closed
kimyoonduk opened this issue Oct 1, 2021 · 3 comments
Closed

[Feature Request] Option to use custom highlighters #60

kimyoonduk opened this issue Oct 1, 2021 · 3 comments

Comments

@kimyoonduk
Copy link

Hi, I came over from https://github.com/satya164/react-simple-code-editor/.

My use case involves highlighting certain words using a custom function.
The highlighting in this version seems to be abstracted so that only language inputs to prism are allowed.
Would it be possible to add an option to use a custom highlighter?

@jaywcjlove
Copy link
Member

It is not recommended to do this, it will cause a huge volume of bundle.

@kimyoonduk

Code highlighting is integrated by default for convenience. But it can be extracted and customized.

jaywcjlove added a commit that referenced this issue Mar 12, 2022
@jaywcjlove
Copy link
Member

jaywcjlove commented Mar 12, 2022

@kimyoonduk Added rehypePlugins props, But this is not recommended.

@kimyoonduk
Copy link
Author

Thank you so much!

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