Skip to content

Expands CSS custom highlights API #1999

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

Closed
wants to merge 3 commits into from
Closed

Conversation

Bashamega
Copy link
Contributor

@Bashamega Bashamega commented Apr 24, 2025

I have added more methods to the HighlightRegistry interface according to the MDN docs.
fixes #1698

Copy link
Contributor

Thanks for the PR!

This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged.

@jakebailey
Copy link
Member

Why doesn't this get pulled in via some other types? (I am not personally knowledgeable about what has to be special cased or not)

@Bashamega
Copy link
Contributor Author

Why doesn't this get pulled in via some other types? (I am not personally knowledgeable about what has to be special cased or not)

I don't know, may be because of the tests

@saschanaz
Copy link
Contributor

This exists already:

interface HighlightRegistry extends Map<string, Highlight> {
}

Seems the types are now available for ES5, but I don't think it's worth the effort, one should just use ES2015+.

@Bashamega Bashamega closed this Apr 25, 2025
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.

CSS custom highlights API?
3 participants