Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 17, 2024
1 parent c01b456 commit 6d4b81c
Show file tree
Hide file tree
Showing 4 changed files with 625 additions and 1,022 deletions.
10 changes: 5 additions & 5 deletions packages/core/src/highlight/code-to-tokens-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ function _tokenizeWithTheme(
content: tokenWithScopesText,
scopes: options.includeExplanation === 'scopeName'
? explainThemeScopesNameOnly(
tokenWithScopes.scopes,
)
tokenWithScopes.scopes,
)
: explainThemeScopesFull(
themeSettingsSelectors,
tokenWithScopes.scopes,
),
themeSettingsSelectors,
tokenWithScopes.scopes,
),
})

tokensWithScopesIndex! += 1
Expand Down
4 changes: 2 additions & 2 deletions packages/rehype/src/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export const PreHandler: RehypeShikiHandler = (_tree, node) => {
const classes = head.properties.className
const languageClass = Array.isArray(classes)
? classes.find(
d => typeof d === 'string' && d.startsWith(languagePrefix),
)
d => typeof d === 'string' && d.startsWith(languagePrefix),
)
: undefined

return {
Expand Down
Loading

0 comments on commit 6d4b81c

Please sign in to comment.