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

Extra markers text style #1

Open
deepakkumardk opened this issue Aug 5, 2024 · 1 comment
Open

Extra markers text style #1

deepakkumardk opened this issue Aug 5, 2024 · 1 comment

Comments

@deepakkumardk
Copy link

Hi @farhoudshapouran Thanks for the great library.

I have a query regarding highlight text props for extraMarkers, how do I also change the text style like for the below code, I also change the text color from black to white.

const extraMarkers = new Highlight({ keywords: ['user interface', 'highlight'], style: { backgroundColor: '#F7DB6A' }, });

@farhoudshapouran
Copy link
Owner

farhoudshapouran commented Oct 10, 2024

Hi @deepakkumardk sorry for the late reply, you can use it like this:

const extraMarkers = new Highlight({ keywords: ['user interface', 'highlight'], style: { backgroundColor: '#F7DB6A', color: '#FFFFFF' }, });

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