Skip to content

Commit

Permalink
fix: deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
tszhong0411 committed Feb 5, 2025
1 parent 5a1fc44 commit a0b11dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion apps/web/src/components/comments/comments-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { useTranslations } from '@tszhong0411/i18n/client'
import { useAtom } from 'jotai'
import { useEffect } from 'react'
import { useInView } from 'react-intersection-observer'
import { createOnigurumaEngine, getSingletonHighlighterCore } from 'shiki'
import { getSingletonHighlighterCore } from 'shiki'
import { createOnigurumaEngine } from 'shiki/engine/oniguruma'
import githubDarkDefault from 'shiki/themes/github-dark-default.mjs'
import githubLightDefault from 'shiki/themes/github-light-default.mjs'

Expand Down
8 changes: 2 additions & 6 deletions packages/mdx-plugins/src/rehype/rehype-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@ import {
transformerNotationHighlight,
transformerNotationWordHighlight
} from '@shikijs/transformers'
import {
bundledLanguages,
createOnigurumaEngine,
getSingletonHighlighter,
type ShikiTransformer
} from 'shiki'
import { bundledLanguages, getSingletonHighlighter, type ShikiTransformer } from 'shiki'
import { createOnigurumaEngine } from 'shiki/engine/oniguruma'

const titleRegex = /title=["']([^"']*)["']/

Expand Down

0 comments on commit a0b11dd

Please sign in to comment.