Skip to content

Commit

Permalink
refactor: fix typo in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 17, 2023
1 parent 295eb97 commit 98a4e8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composables/shiki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const shiki = ref<Highlighter>()
const registeredLang = ref(new Map<string, boolean>())
let shikiImport: Promise<void> | undefined

export function useHightlighter(lang: Lang) {
function useHighlighter(lang: Lang) {
if (!shikiImport) {
shikiImport = import('shiki-es')
.then(async (r) => {
Expand Down Expand Up @@ -61,7 +61,7 @@ function escapeHtml(text: string) {
}

export function highlightCode(code: string, lang: Lang) {
const shiki = useHightlighter(lang)
const shiki = useHighlighter(lang)
if (!shiki)
return escapeHtml(code)

Expand Down

0 comments on commit 98a4e8c

Please sign in to comment.