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

feat(transformers): support word highlighting across multiple tokens #561

Merged
merged 5 commits into from
Jan 27, 2024

Conversation

fuma-nama
Copy link
Contributor

Support word highlighting across multiple tokens. To be precise, it finds all matching words in the line and highlights them individually.

Copy link

netlify bot commented Jan 27, 2024

Deploy Preview for shiki-next ready!

Name Link
🔨 Latest commit 110df7f
🔍 Latest deploy log https://app.netlify.com/sites/shiki-next/deploys/65b4eb9026a5ae0008c0e47b
😎 Deploy Preview https://deploy-preview-561--shiki-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 27, 2024

Deploy Preview for shiki-matsu ready!

Name Link
🔨 Latest commit 110df7f
🔍 Latest deploy log https://app.netlify.com/sites/shiki-matsu/deploys/65b4eb90ddb4ec00086528c5
😎 Deploy Preview https://deploy-preview-561--shiki-matsu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codecov-commenter
Copy link

codecov-commenter commented Jan 27, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (9504c7f) 97.07% compared to head (110df7f) 97.05%.

Files Patch % Lines
packages/transformers/src/shared/highlight-word.ts 97.18% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #561      +/-   ##
==========================================
- Coverage   97.07%   97.05%   -0.02%     
==========================================
  Files          54       54              
  Lines        5027     5066      +39     
  Branches      648      656       +8     
==========================================
+ Hits         4880     4917      +37     
- Misses        143      145       +2     
  Partials        4        4              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@antfu antfu changed the title feat(transformers): Support word highlighting across multiple tokens feat(transformers): support word highlighting across multiple tokens Jan 27, 2024
@antfu antfu merged commit 70fdcbd into shikijs:main Jan 27, 2024
12 checks passed
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.

3 participants